Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4396 closed (duplicate)

dumping database into XML is not non-ascii aware

Reported by: Almad <bugs@…> Owned by: adrian
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 8 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from dumping database into XML is not non-ascii aware to [unicode] dumping database into XML is not non-ascii aware

Can you try this on the unicode branch?

comment:2 Changed 8 years ago by mtredinnick

  • Resolution set to duplicate
  • Status changed from new to closed
  • Summary changed from [unicode] dumping database into XML is not non-ascii aware to 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.

comment:3 Changed 8 years ago by almad

Yup, works in unicode branch - thank you.

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