#29249: Add option to dumpdata with unicode JSON
-------------------------------------+-------------------------------------
     Reporter:  hakib                |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Core (Management     |                  Version:  2.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  dumpdata, unicode    |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by hakib):

 The JSON serializer has a `ensure_ascii` attribute and the YAML serializer
 has a `allow_unicode` attribute. I already sumitted a
 [PR](https://github.com/django/django/pull/9818#issuecomment-375694612)
 implemeting the flag in both serializers.

 I haven't looked at the XML serializer yet but i'm sure it will be
 possible there as well.

 As someone who works with unicode as the primary language for most apps
 (as i'm sure a lot of other developers do) it's a very a usefull feature
 to be able to dump fixtures directly from local db in a readbale format.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29249#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.339235936f8dd9394f0e74dbc4ff0d51%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to