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!
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)
- [Answer]-Django Performance, url.py evaluation and cache
- [Answer]-Django form validation on create view only
- [Answer]-Traceback error: Django dictionary
Source:stackexchange.com