Opened 18 years ago

Closed 18 years ago

Last modified 17 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: 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 Simon G. <dev@…>, 18 years ago

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 by Malcolm Tredinnick, 18 years ago

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 by almad, 17 years ago

Yup, works in unicode branch - thank you.

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