Skip to content

Commit

Permalink
Pass encoding='utf-8' when reading config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 20, 2023
1 parent 87d0795 commit faefa55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_generator/map_viewer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def qwc2_config(self):
config_file = cfg_qwc2_config.get(
'qwc2_config_file', 'config.json'
)
with open(config_file) as f:
with open(config_file, encoding='utf-8') as f:
# parse config JSON with original order of keys
config = json.load(f, object_pairs_hook=OrderedDict)
except Exception as e:
Expand Down

0 comments on commit faefa55

Please sign in to comment.