From c55f50a5b9e866b8feb3d9ae5a71b4ca9960152b Mon Sep 17 00:00:00 2001 From: zcj1122 Date: Thu, 21 May 2026 17:19:36 +0800 Subject: [PATCH] fix: ensure utf-8 encoding in jobs.json --- cron/jobs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cron/jobs.py b/cron/jobs.py index 39dd998e7cae2..7d91ec35ed1e6 100644 --- a/cron/jobs.py +++ b/cron/jobs.py @@ -1294,6 +1294,7 @@ def _save_jobs_unlocked( {"jobs": jobs, "updated_at": _hermes_now().isoformat()}, f, indent=2, + ensure_ascii=False, ) f.flush() os.fsync(f.fileno()) @@ -1362,6 +1363,7 @@ def _save_jobs_unlocked( {"jobs": jobs, "updated_at": _hermes_now().isoformat()}, f, indent=2, + ensure_ascii=False, ) f.flush() os.fsync(f.fileno())