mensi.ch

Tag: apache

UnicodeEncodeError when reading filenames

by mensi on Nov.02, 2010, under Python, debian

If you ever get UnicodeEncodeError exceptions when reading filenames with python, it’s probably because Apache uses the “C” locale instead of what you have configured for yourself. To fix the problem in debian, edit /etc/apache2/envvars and uncomment the line containing
. /etc/default/locale

Check that you have set the proper locale in /etc/default/locale.

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...