[Answer]-Can't Display Special Characters Django/Python in Template/WebPage

1👍

Include this at the top of your HTML page/template

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

You should send the request as an html page, otherwise I don’t think you will be able to output that character correctly.

Hope it works!

👤abhi

0👍

In [5]: a = u"T\xfcrkiye"

In [6]: print a
Türkiye

I think you are printing str not unicode string. Try: var = u'{}’.format(text)

👤kpacn

Leave a comment