diff --git a/scripts/fetch_meta.py b/scripts/fetch_meta.py index b7ab0908f..4e4eea1d4 100644 --- a/scripts/fetch_meta.py +++ b/scripts/fetch_meta.py @@ -89,7 +89,7 @@ def main(): count = len(data.get("services", [])) print(f"fetch-meta: OK, {count} services from remote API", file=sys.stderr) - with open(OUT_PATH, "w") as fp: + with open(OUT_PATH, "w", encoding="utf-8") as fp: json.dump(data, fp, ensure_ascii=False, indent=2) fp.write("\n")