Skip to content

Commit

Permalink
add utf-8 encoding to the open() call (#12388)
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Mar 27, 2021
1 parent a866fbf commit 5dc7951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/qmk/json_schema.py
Expand Up @@ -15,7 +15,7 @@ def json_load(json_file):
Note: file must be a Path object.
"""
try:
return hjson.load(json_file.open())
return hjson.load(json_file.open(encoding='utf-8'))

except json.decoder.JSONDecodeError as e:
cli.log.error('Invalid JSON encountered attempting to load {fg_cyan}%s{fg_reset}:\n\t{fg_red}%s', json_file, e)
Expand Down

0 comments on commit 5dc7951

Please sign in to comment.