From 59d874f619caf5c4138480e194d65df1cff74aac Mon Sep 17 00:00:00 2001 From: lnguy Date: Fri, 15 Dec 2023 17:16:33 +0100 Subject: [PATCH] Fix encoding bug --- src/module/json_movelist_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/json_movelist_reader.py b/src/module/json_movelist_reader.py index 0579593..ecfccb0 100644 --- a/src/module/json_movelist_reader.py +++ b/src/module/json_movelist_reader.py @@ -7,7 +7,7 @@ def get_movelist(character_name: str) -> dict: os.path.abspath(os.path.join(base_path, "..", "json_movelist", character_name + ".json")) filepath = os.path.abspath(os.path.join(base_path, "..", "json_movelist", character_name + ".json")) - with open(filepath) as move_file: + with open(filepath, encoding='utf-8') as move_file: move_file_contents = json.loads(move_file.read()) return move_file_contents