Encoding Error In Django On Heroku
I see some topics where people say to use this command to solve the problem heroku config:add LANG=en_US.UTF-8 I did it already but keep getting encoding problem, like this Unicod
Solution 1:
Old question, but I've found the same issue.
My solution: I've found that my heroku's python wax 2.x.
Eveything went OK as I told heroku to use python 3.x (as my dev environment).
To do that, just add a runtime.txt file at the root of you project, and choose the right runtime:
python-3.4.3
As seen here: https://devcenter.heroku.com/articles/python-runtimes
Solution 2:
I had the same problem. The only thing that solved it to me was put in the beginning of wsgi.py:
reload(sys)
sys.setdefaultencoding("utf-8")
Hope it helps someone!
Post a Comment for "Encoding Error In Django On Heroku"