Merge pull request #2484 from siowu/master

fm11rf08s_recovery: Specify the encoding as UTF-8 when opening the MFC dictionary file.
This commit is contained in:
Iceman
2024-09-03 11:37:48 +02:00
committed by GitHub
+1 -1
View File
@@ -113,7 +113,7 @@ except json.decoder.JSONDecodeError:
if os.path.isfile(DICT_DEF_PATH):
print(f"Loading {DICT_DEF}")
with open(DICT_DEF_PATH, 'r') as file:
with open(DICT_DEF_PATH, 'r', encoding='utf-8') as file:
for line in file:
if line[0] != '#' and len(line) >= 12:
DEFAULT_KEYS.add(line[:12])