I have a problem with special characters.
I am doing a mysql query using mysqldb. The database itself is in UTF-8 as well as the tables. The query has a result that, when running the query as a query itself, i get the correct result: Türkiye.
In MysqlDB, i am using the "charset = 'utf8', use_unicode = True" I also have "# -- coding: utf-8 --" At the top of my python file. Additionally, i also have the variable set to
unicode(text)
However, it seems that no matter what i do, i cannot get the text to display as "Türkiye" And it always is displaying as "T\xfcrkiye"
Now, i could do a simply find replace, but the problem is, there are many other special characters used in other places as well. Too many to reliably use find/replace. What i want to do, is have this character be displayed and stored correctly in a variable as "Türkiye" and not "T\xfcrkiye"
Thanks for the help!
{{ text }}and it's only displaying "T\xfcrkiye", without the quotes or any other characters?