mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 14:17:49 +00:00
Use utf8 in all file read operations
This commit is contained in:
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}")
|
||||
|
||||
Reference in new issue
Block a user