mirror of
https://github.com/ahgsql/StyleSelectorXL.git
synced 2026-01-26 11:09:53 +00:00
Merge pull request #21 from mozman/load_json_utf8
load json file with utf-8 encoding
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user