Fix: Ensure UTF-8 encoding and ensure_ascii=False for remaining file/JSON operations

This commit is contained in:
chtangwin
2026-02-18 18:37:17 -08:00
parent c7b5dd9350
commit a2379a08ac
5 changed files with 11 additions and 11 deletions

View File

@@ -55,8 +55,8 @@ def save_config(config: Config, config_path: Path | None = None) -> None:
data = config.model_dump(by_alias=True)
with open(path, "w") as f:
json.dump(data, f, indent=2)
with open(path, "w", encoding="utf-8") as f:
json.dump(data, f, indent=2, ensure_ascii=False)
def _migrate_config(data: dict) -> dict: