Merge pull request #21 from mozman/load_json_utf8

load json file with utf-8 encoding
This commit is contained in:
Ali Haydar Güleç
2023-09-26 12:19:39 +03:00
committed by GitHub

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: