Opened 14 years ago

Closed 14 years ago

#15017 closed (invalid)

Can't use dumpdata to output non-ASCII data

Reported by: echamberlain Owned by: nobody
Component: Core (Serialization) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

We are trying to migrate between databases and we are running into a problem while trying to use dumpdata. We've tried:

./manage.py dumpdata --natural --indent 2 > dump.json

and:

./manage.py dumpdata --natural --format xml --indent 2 > dump.xml

Both return the following error:

Error: Unable to serialize database: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)

Change History (1)

comment:1 by echamberlain, 14 years ago

Resolution: invalid
Status: newclosed

I found the problem, it had to do with a model calling repr() on a list with unicode data.

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