mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
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:
commit
258e2892ec
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue