diff --git a/src/webapp/common.py b/src/webapp/common.py index c8f2e81d8..defa23d7c 100644 --- a/src/webapp/common.py +++ b/src/webapp/common.py @@ -208,7 +208,7 @@ def load_yaml_file(filename) -> Dict: """ try: - with open(filename) as stream: + with open(filename, encoding='utf-8', errors='surrogateescape') as stream: return yaml.safe_load(stream) except yaml.YAMLError as e: log.error("YAML error in %s: %s", filename, e)