load json file with utf-8 encoding

This commit is contained in:
mozman
2023-09-26 09:07:54 +02:00
parent e595597b2f
commit fe05b2a501

View File

@@ -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: