fix character decoding error on some systems.

pull/33/head
ChunKoo Park 2023-03-15 21:11:10 +09:00
parent 25209ebfcf
commit 77355b8a26
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def load_hash_dict():
hash_dict = defaultdict(list) hash_dict = defaultdict(list)
def parse_file(path, idx): def parse_file(path, idx):
if os.path.exists(path): if os.path.exists(path):
with open(path, newline='') as csvfile: with open(path, newline='', encoding='utf-8') as csvfile:
csvreader = csv.reader(csvfile) csvreader = csv.reader(csvfile)
for row in csvreader: for row in csvreader:
try: try: