Forums

Turkish char problem

Hello I am using Flask on Python 3 I have Turkish char problem. I write mandalina and make it uppercase python returns MANDALINA it should be MANDALÄ°NA. SQLALCHEMY returns MANDALÄ°NA so result does not match. I tried locale.setlocale(locale.LC_ALL, 'tr_TR.utf8') in my Flask script. But it seems like not working. What is your suggestion.

Thank you

I don't know much about internationalisation, but perhaps this stackoverflow question will help. In particular, the answer that refers to casefold may be helpful to you.