Monday, January 3, 2011

Can't use dumpdata and loaddata to migrate non-ASCII data between databases

Hi,

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)

Is there a way to dump and load non-ASCII data?


--
Eric Chamberlain, Founder
RF.com - http://RF.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate