In my Django application, a user has uploaded a file with a unicode character in the name.
When I\'m downloading files, I\'m calling :
os.path.exists
None of these solutions worked for me. However, I did find the (a?) solution. There is yet another place in Apache settings where one has to add the locale setting if one uses WSGI. Official docs are here. Add the following two lines to /etc/apache2/envvars
(on Ubuntu):
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
Then restart the server. This solved my problem.