diff --git a/examples/information_extraction/DuEE/utils.py b/examples/information_extraction/DuEE/utils.py old mode 100644 new mode 100755 index ca0a33c5d85d0..6fc299a281d2d --- a/examples/information_extraction/DuEE/utils.py +++ b/examples/information_extraction/DuEE/utils.py @@ -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