Fix: Ensure UTF-8 encoding for all file operations
This commit is contained in:
1 parent
8de36d398f
commit
c7b5dd9350
5 files changed
+13
-11
No files matched your search
@@ -31,7 +31,7 @@ def load_config(config_path: Path | None = None) -> Config:
|
||||
|
||||
if path.exists():
|
||||
try:
|
||||
with open(path) as f:
|
||||
with open(path, encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
data = _migrate_config(data)
|
||||
return Config.model_validate(data)
|
||||
|
||||
Reference in new issue
Block a user