Opened 4 years ago

Closed 4 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:

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 Changed 4 years ago by echamberlain

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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