diff options
author | Zach White <skullydazed@gmail.com> | 2021-03-27 08:55:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 08:55:47 -0700 |
commit | 5dc7951dc0a2f4c0f116db3c0fe992e4d3fd8657 (patch) | |
tree | 7f15f1f9aa10c2facc491c09c80c498803b22782 /lib/python | |
parent | a866fbf3819eaf0ce787fd8c67b1bddee59bc19b (diff) |
add utf-8 encoding to the open() call (#12388)
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/json_schema.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/json_schema.py b/lib/python/qmk/json_schema.py index b4cd1776b2..077dfcaa93 100644 --- a/lib/python/qmk/json_schema.py +++ b/lib/python/qmk/json_schema.py @@ -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) |