~ruther/qmk_firmware

5dc7951dc0a2f4c0f116db3c0fe992e4d3fd8657 — Zach White 4 years ago a866fbf
add utf-8 encoding to the open() call (#12388)

1 files changed, 1 insertions(+), 1 deletions(-)

M lib/python/qmk/json_schema.py
M lib/python/qmk/json_schema.py => lib/python/qmk/json_schema.py +1 -1
@@ 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)