On Sun, Jun 20, 2010 at 5:15 AM, Federico Capoano <nemesis.des...@libero.it>wrote:
> I logged onto the server via SSH and tried the command "locale", the > following is what I get: > > LANG=en_US.UTF-8 > [snipped remainder] That looks fine, but the locale when you ssh into the server is not necessarily the same as the locale configured for the web server. For some reason it seems that it is popular to configure Apache (are you using Apache?) to run with LANG=C, which causes Python to think that the "preferred" file system encoding is ASCII, which breaks any attempt to use files with non-ASCII characters in their names. The doc I pointed to ends with: Consult the documentation for your operating system for the appropriate syntax and location to put these configuration items; /etc/apache2/envvars is a common location on Unix platforms. Once you have added these statements to your environment, restart Apache. I am not familiar with Red Hat so I can't give you any more specific advice than that. If it does not use /etc/apache2/envvars (or if you are using some server other than Apache), then you need to consult the Red Hat doc or forums to find out how to configure your web server to run with a LANG other than C or whatever it is currently using. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.