#4396 closed (duplicate)
dumping database into XML is not non-ascii aware
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
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
When trying to serialize database into XML, I got UnicodeDecodeErorr (I guess ,)):
:/volumes/web/r/p/rpgpedia.cz/rpgpedia# python manage.py --format=xml dumpdata > database.xml
Unable to serialize database: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Serializing using json is OK:
:/volumes/web/r/p/rpgpedia.cz/rpgpedia# python manage.py dumpdata > database.json
Change History (3)
comment:1 by , 17 years ago
Summary: | dumping database into XML is not non-ascii aware → [unicode] dumping database into XML is not non-ascii aware |
---|
comment:2 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Summary: | [unicode] dumping database into XML is not non-ascii aware → dumping database into XML is not non-ascii aware |
This has already been fixed on the unicode branch (and the test suite tests it) -- although please do reopen with an example if you can make it fail there.
It's a close relation of #4227 as far as trunk goes.
Can you try this on the unicode branch?