Thursday, March 1, 2012

Re: UnicodeEncodeError in file uploads

1) $ cat /etc/apache2/envvars
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
. /etc/default/locale
export LANG
# comments have been stripped

2) $ cat /etc/default/locale
LANG="en_US.UTF-8"
$ sudo su - www-data
$ export
export HOME='/var/www'
export LANG='en_US.UTF-8'
export LOGNAME='www-data'
export MAIL='/var/mail/www-data'
export PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
export PWD='/var/www'
export SHELL='/bin/sh'
export TERM='xterm'
export USER='www-data'

By the way, I have the same django project running on a Debian5 server
with locale de_DE.UTF-8 and the upload of filenames containing German
umlauts is working.....
Would it help to change the locale settings on this Ubuntu server to
de_DE.UTF-8, too?

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment