Fix feedback JSON encoding: use ensure_ascii=False to preserve accented characters
This commit is contained in:
@@ -224,6 +224,6 @@ async def submit_feedback(
|
|||||||
except (OSError, json.JSONDecodeError):
|
except (OSError, json.JSONDecodeError):
|
||||||
existing = []
|
existing = []
|
||||||
existing.append(entry)
|
existing.append(entry)
|
||||||
log_file.write_text(json.dumps(existing, indent=2))
|
log_file.write_text(json.dumps(existing, indent=2, ensure_ascii=False), encoding="utf-8")
|
||||||
|
|
||||||
return JSONResponse({"ok": True, "id": submission_id})
|
return JSONResponse({"ok": True, "id": submission_id})
|
||||||
|
|||||||
Reference in New Issue
Block a user