#29249: Add option to dumpdata with unicode data
---------------------------------------+-----------------------------------
               Reporter:  hakib        |          Owner:  nobody
                   Type:  New feature  |         Status:  new
              Component:  Utilities    |        Version:  2.0
               Severity:  Normal       |       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            |
---------------------------------------+-----------------------------------
 It is currently not (easily) possible to use the `dumpdata` managemet
 command on models with unicode data.
 The JSON serializer used by dumpdata is not accepting the `ensure_ascii`
 argument used by `json.dumps` as an argument.

 Since `ensure_ascii=True` is the default, I suggest adding a `--dont-
 ensure-ascii` flag to the `dumpdata` managemet command so it will be
 easier to use dumpdata with unicode.

 {{{
 ./manage.py dumpdata app.model --dont-ensure-ascii
 }}}

 I'm not sure what are the implications on other serializers such as YAML,
 XML etc.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29249>
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/048.ba00c4f7c21b0568fc18b157bbed0d7f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to