Use utf8 in all file read operations

This commit is contained in:
Michael Panchenko committed 2025-05-19 17:18:51 +02:00
1 parent c596bce092
commit e8d493f4d6
12 files changed
+20 -20

No files matched your search

@@ -44,7 +44,7 @@ def load_config(config_path: str) -> dict[str, Any]:
return {}
try:
with open(config_path) as f:
with open(config_path, encoding="utf-8") as f:
return json.load(f)
except json.JSONDecodeError:
logger.error(f"Invalid JSON in configuration file: {config_path}")