Skip to content

Commit

Permalink
fix windows locale bug (PaddlePaddle#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffy-zxf authored Aug 6, 2021
1 parent 091b815 commit 5e92215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/information_extraction/DuEE/utils.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def cal_md5(str):
def read_by_lines(path):
"""read the data by line"""
result = list()
with open(path, "r") as infile:
with open(path, "r", encoding="utf8") as infile:
for line in infile:
result.append(line.strip())
return result
Expand Down

0 comments on commit 5e92215

Please sign in to comment.