Skip to content

Commit faefa55

Browse files
committed
Pass encoding='utf-8' when reading config.json
1 parent 87d0795 commit faefa55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config_generator/map_viewer_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def qwc2_config(self):
171171
config_file = cfg_qwc2_config.get(
172172
'qwc2_config_file', 'config.json'
173173
)
174-
with open(config_file) as f:
174+
with open(config_file, encoding='utf-8') as f:
175175
# parse config JSON with original order of keys
176176
config = json.load(f, object_pairs_hook=OrderedDict)
177177
except Exception as e:

0 commit comments

Comments
 (0)