Skip to content

Commit 5e92215

Browse files
authored
fix windows locale bug (PaddlePaddle#856)
1 parent 091b815 commit 5e92215

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/information_extraction/DuEE

‎examples/information_extraction/DuEE/utils.py‎

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def cal_md5(str):
2424
def read_by_lines(path):
2525
"""read the data by line"""
2626
result = list()
27-
with open(path, "r") as infile:
27+
with open(path, "r", encoding="utf8") as infile:
2828
for line in infile:
2929
result.append(line.strip())
3030
return result

0 commit comments

Comments
 (0)