On Fri, 2007-10-12 at 10:29 +0200, Dirk Eschler wrote: [...] > i got around most of my unicode related problems by setting Pythons default > encoding to utf-8. > > $ cat /usr/lib/python2.4/sitecustomize.py > import sys > sys.setdefaultencoding("utf-8")
Oh, no. That's a highly unrecommended solution, though. setdefaultencoding() is not even meant to be in Python and there are assumptions that the default encoding won't be changed. Please don't do it (and I know that "Dive into Python" suggests this, but that's a bug -- there are lots of threads on python-dev recommending against it). 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 -~----------~----~----~----~------~----~------~--~---