1π
β
See this issue for the list of likely solutions:
-
Make sure that you created your production database with a
UTF-8
charset. This will cause headaches if you forget to do it. -
Verify that the system locale supports UTF-8:
Your system locale may be a default ASCII locale, like the βCβ locale on UNIX-like systems (can be checked by the locale command). If itβs the case, please refer to your system documentation to learn how you can change this to a UTF-8 locale.
-
Verify that your wsgi handler (e.g., uwsgi, gunicorn) is being passed the right locale. Hereβs some sample config:
environment=LANG="%(locale)s",LC_ALL="%(locale)s",LC_LANG="%(locale)s"
π€solarissmoke
Source:stackexchange.com