From fe05b2a50101476eeed648b13e4a8f883385dd6c Mon Sep 17 00:00:00 2001 From: mozman Date: Tue, 26 Sep 2023 09:07:54 +0200 Subject: [PATCH] load json file with utf-8 encoding --- scripts/StyleSelectorXL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/StyleSelectorXL.py b/scripts/StyleSelectorXL.py index 92186e4..429b7c8 100644 --- a/scripts/StyleSelectorXL.py +++ b/scripts/StyleSelectorXL.py @@ -11,7 +11,7 @@ stylespath = "" def get_json_content(file_path): try: - with open(file_path, 'r') as file: + with open(file_path, 'rt', encoding="utf-8") as file: json_data = json.load(file) return json_data except Exception as e: