I started with the .96 version locally and then backed up and restored the postgres DB on my live server, which is running the SVN version. The import worked fine, the front end works fine, but there is a problem with the backend. It seems to be having a problem dealing with some of the unicode characters in my database (others it seems to be dealing with fine. This error always comes up in the object view of objects with chinese characters in the title:
UnicodeEncodeError Exception Value: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) Exception Location: /usr/lib/python2.5/site-packages/django/utils/ encoding.py in force_unicode, line 39 Python Executable: /usr/bin/python Python Version: 2.5.1 Template error In template /usr/lib/python2.5/site-packages/django/contrib/admin/ templates/admin/change_form.html, error at line 15 Caught an exception while rendering: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) 15 {% if add %}{% trans "Add" %} {{ opts.verbose_name|escape }}{% else %}{{ original|truncatewords:"18"|escape }}{% endif %} Frustratingly, it seems to read other parts of the Chinese database just fine...I'm not sure what's going wrong here? My database and application are both set to UTF8 On Aug 22, 7:56 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Wiley wrote: > > I was wondering if anyone else had trouble or a workaround for dumping > > and loading data with mixed character sets using a postgres backend. > > My data has quite a few Chinese characters, they run from my normal > > installation fine, but when i dump and reload the data, it's all > > corrupted. Any hints here? > > Are you using latest trunk builds? There were still a couple of problems > with serialization in 0.96 release that were fixed on trunk by switching > Django to unicode [1]. Now all should work fine. > > [1]:http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsT... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---