From faefa55ff3f8328e9ce270a6f7d63ff60a2e7d18 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 20 Dec 2023 12:00:51 +0100 Subject: [PATCH] Pass encoding='utf-8' when reading config.json --- src/config_generator/map_viewer_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config_generator/map_viewer_config.py b/src/config_generator/map_viewer_config.py index d21c6cb..727db88 100644 --- a/src/config_generator/map_viewer_config.py +++ b/src/config_generator/map_viewer_config.py @@ -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: