Python
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.