Skip to content

Commit 3d8f0bb

Browse files
Changed file_util
1 parent 72d7331 commit 3d8f0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/file_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def read_file_into_line_list(file_path, if_strip=False):
112112
if not os.path.exists(file_path):
113113
print("File {} not exists!".format(file_path))
114114
return None
115-
with open(file_path, encoding="utf8") as f:
115+
with open(file_path, encoding='cp437') as f:
116116
content = f.readlines()
117117
if if_strip:
118118
content = [x.strip() for x in content]

0 commit comments

Comments
 (0)