UnicodeEncodeError when running in mod_wsgi even after setting LANG and LC_ALL
I followed advice by @kchomski and edited /etc/apache2/envvars
:
## Uncomment the following line to use the system default locale instead:. /etc/default/locale
The last line was commented, I uncommented it. Now my WSGI scripts are using en_US.UTF-8
locale and everything works fine!