Code

Opened 7 years ago

Closed 7 years ago

Last modified 7 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

Attachments (0)

Change History (3)

comment:1 Changed 7 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 7 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 7 years ago by almad

Yup, works in unicode branch - thank you.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.