hello, I am trying to configure apache on a new server, but just getting 500 errors due a UnicodeEncodeError (in fact is on the photologue application but the problem is extended wherever I use unicode strings).
My problem is that when the application tries to access to the file name of a photo, which is unicode encoded I get this error: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 68: ordinal not in range(128) I don't get this error on my local machine, neither when I use fastcgi on another server. My server is an ubuntu karmic, with apache 2 and mod_wsgi. when I get the locale of the machine I got this: de...@ip-10-227-118-79:/srv/www$ locale LANG=es_ES.UTF-8 LC_CTYPE="es_ES" LC_NUMERIC="es_ES" LC_TIME="es_ES" LC_COLLATE="es_ES" LC_MONETARY="es_ES" LC_MESSAGES="es_ES" LC_PAPER="es_ES" LC_NAME="es_ES" LC_ADDRESS="es_ES" LC_TELEPHONE="es_ES" LC_MEASUREMENT="es_ES" LC_IDENTIFICATION="es_ES" LC_ALL=es_ES I just don't get how can I know or change the default charset so mod_wsgi knows that the string is an unicode string and don't try to encode it again. thanks in advance, robert -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

