# Revision history [back]

The issue is that the encoding set in your server python process is unable to encode a specific unicode string.

Details can be found here http://blog.dscpl.com.au/2014/09/setting-lang-and-lcall-when-using.html.

To solve this, set the following locale related environment variables to be used in your python server process:

LANG='en_US.UTF-8'
LC_ALL='en_US.UTF-8'


For example uwsgi takes the following (in the .ini file):

env = LC_ALL='en_US.UTF-8' #I find this sufficient