diff --git a/settings.py b/settings.py index 9f16d24..46a32d6 100644 --- a/settings.py +++ b/settings.py @@ -40,7 +40,9 @@ class Config(DataClassJsonMixin): try: path.parent.mkdir(parents=True, exist_ok=True) with path.open("w") as f: - f.write(Config.schema().dumps(self, indent=4)) + f.write( + Config.schema().dumps(self, indent=4, ensure_ascii=False) + ) return self except Exception as e: raise RuntimeError(f"Failed to save config file: {path}") from e