Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4396 closed (duplicate)

dumping database into XML is not non-ascii aware

Reported by: Almad <bugs@…> Owned by: Adrian Holovaty
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 Changed 10 years ago by Simon G. <dev@…>

Summary: dumping database into XML is not non-ascii aware[unicode] dumping database into XML is not non-ascii aware

Can you try this on the unicode branch?

comment:2 Changed 10 years ago by Malcolm Tredinnick

Resolution: duplicate
Status: newclosed
Summary: [unicode] dumping database into XML is not non-ascii awaredumping 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.

comment:3 Changed 10 years ago by almad

Yup, works in unicode branch - thank you.

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