On Sat, 2007-05-19 at 10:54 +0000, cesco wrote: > Hi, > > I'm experiencing a problem loading some data from fixtures. Some of > the object loaded have danish letters (ø, å, æ) in their fields. > > If I use the ANSI encoding for the JSON file I'm trying to load I get > the following error message: > "Problem installing fixture ...: 'utf8' codec can't decode bytes in > position 2-6: unsupported Unicode code range" > > If I use the UTF8 encoding I get the message: > "Problem installing fixture ...: No JSON object could be decoded" > > I tried also replacing the danish letters with their unicode encoding > (ø -> \xf8, æ -> \xe6, å -> \xe5) but it didn't work (neither in ANSI > nor in UTF-8). > > Do you have any suggestion on how to solve this problem?
It feels like I am answering this quetion every single day: non-ASCII characters are not supported in trunk at the moment. There are lots of problems with them. That is exactly why the Unicode branch is in development. You will have to save your fixtures as UTF-8 when the Unicode branch is merged, but then it should just work smoothly. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---