I am facing a bit of a problem returning arabic characters using flask(gunicorn).
# coding: utf8
a = x.callerpy(x.country_by_code(code), number) #returns a string
return render_template("view.html", contents=a.decode('unicode-escape')))
It works locally by converting this '\u0637\u064a\u0628\u0647 \u0644\u0644\u0645\u064a\u0627\u0647'(example) into arabic characters.
However, the response I get whilst running on heroku is 'Ø·ÙØ¨Ù ÙÙÙ
I have also tried
How can I overcome this issue?
Thanks in advance.