From 77355b8a2686a2fa196afffa980de30760a128eb Mon Sep 17 00:00:00 2001 From: ChunKoo Park Date: Wed, 15 Mar 2023 21:11:10 +0900 Subject: [PATCH] fix character decoding error on some systems. --- scripts/model_keyword.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/model_keyword.py b/scripts/model_keyword.py index 6515bc0..a668a52 100644 --- a/scripts/model_keyword.py +++ b/scripts/model_keyword.py @@ -62,7 +62,7 @@ def load_hash_dict(): hash_dict = defaultdict(list) def parse_file(path, idx): if os.path.exists(path): - with open(path, newline='') as csvfile: + with open(path, newline='', encoding='utf-8') as csvfile: csvreader = csv.reader(csvfile) for row in csvreader: try: