Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2427 closed defect (fixed)

[patch] ensure_ascii option doesn't pass to simplejson.dump

Reported by: mtsuyuki@… Owned by: Adrian Holovaty
Component: Core (Other) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

django.core.serializers.json.Serializer.end_serialization doesn't pass ensure_ascii flag to simplejson.dump.
So simplejson.dump always use ensure_ascii=True, it's no use for none ascii charcters.

Attachments (1)

3453.json_2.diff (631 bytes) - added by mtsuyuki@… 10 years ago.
replace 3453.json.diff with 3453.json_2.diff. I wrote a fool code..

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by mtsuyuki@…

Attachment: 3453.json_2.diff added

replace 3453.json.diff with 3453.json_2.diff. I wrote a fool code..

comment:1 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

Thanks for the patch. This was fixed in a more general way in [3795] and documented in docs/serialization.txt.

Note: See TracTickets for help on using tickets.
Back to Top