I'm a noob, but perhaps this will help the discussion.

 http://www.djangoproject.com/documentation/serialization/

 "If you're using UTF-8 (or any other non-ASCII encoding) data with the
 JSON serializer, you must pass ensure_ascii=False as a parameter to
 the serialize() call..."

 I saw this before I tried to create a fixture.  I somewhat assumed
 (and could be totally 100% wrong) that dumpdata uses this code, so I
 looked around for some similar flag to dumpdata.  In the end I just
 ran dumpdata with --format=xml and then --format=json, thinking one of
 the two will probably work.  (Incidentally, I have a list of countries
 in my DB in unicode.)

 As much as I hate XML, I really don' t care if it's XML when I don't
 ever have to look at it.

 Anyway, I went to bed and didn't test my dump'ed data yet.  Will do
 that today at some point.

 Help this helps.


 On 6/13/08, Karen Tracey <[EMAIL PROTECTED]> wrote:
 > On Thu, Jun 12, 2008 at 1:58 PM, LB <[EMAIL PROTECTED]> wrote:
 >
 > >
 > >    Hi,
 > >
 > > I'm new to django and I've got problem with the loaddata function.
 > > I have a lot of data containing unicode. I needed to clean my
 > > database, so I made a fixture with
 > > `./manage.py dumpdata > backup.json`
 > > Then, I cleared my database and loaded my backup with :
 > > `./manage.py loaddate backup.json`
 > >
 > > Now, all strings containing unicode are not correctly handled in the
 > > adminitration interface.
 > > What is the good way to make a backup with loaddata / dumpdata when
 > > dealin with unicode ?
 > >
 > > I'm using then debian package od django 0.96.
 > >
 >
 > Your problem description is a bit vague, but 0.96 and unicode throws up a
 > red flag.  Full unicode support in Django did not get added until after the
 > 0.96 release, so a first step towards fixing whatever unicode problem you
 > are having is to upgrade to an SVN checkout of Django.
 >
 > Karen
 >
 >   >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to