Opened 8 years ago

Closed 8 years ago

Last modified 8 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:


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@… 8 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 8 years ago by mtsuyuki@…

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

comment:1 Changed 8 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.