From 4828e323a70cec28a180fc18dc85f9f83dc13956 Mon Sep 17 00:00:00 2001 From: vandan Date: Tue, 18 May 2021 13:58:58 +0530 Subject: [PATCH] update --- get_translation_iiith_hindi_telugu.py | 2 +- get_translation_iiith_telugu_hindi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/get_translation_iiith_hindi_telugu.py b/get_translation_iiith_hindi_telugu.py index fa8ecf9..c46ce91 100644 --- a/get_translation_iiith_hindi_telugu.py +++ b/get_translation_iiith_hindi_telugu.py @@ -23,7 +23,7 @@ output_file = sys.argv[2] def read_file(path, isref=False): _data = [] - for line in codecs.open(path): + for line in codecs.open(path, encoding="utf8"): line = line.strip() line = line.replace('_','').replace('`','').replace('"','').replace("'",'') _data.append(line) diff --git a/get_translation_iiith_telugu_hindi.py b/get_translation_iiith_telugu_hindi.py index 5d34941..4eda61d 100644 --- a/get_translation_iiith_telugu_hindi.py +++ b/get_translation_iiith_telugu_hindi.py @@ -23,7 +23,7 @@ output_file = sys.argv[2] def read_file(path, isref=False): _data = [] - for line in codecs.open(path): + for line in codecs.open(path, encoding="utf8"): line = line.strip() line = line.replace('_','').replace('`','').replace('"','').replace("'",'') _data.append(line) -- GitLab