Opened 6 years ago

Closed 6 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: UI/UX:


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

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


./ 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 Changed 6 years ago by echamberlain

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