Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2427 closed defect (fixed)

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

Reported by: mtsuyuki@… Owned by: adrian
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@… 9 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 9 years ago by mtsuyuki@…

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

comment:1 Changed 9 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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