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
It is easy to get this kind of error when running service (E.g: gunicorn) from Upstart.
To fix that, set env in upstart file:
env LANG=en_US.UTF-8 env LC_CTYPE=en_US.UTF-8 env LC_ALL=en_US.UTF-8