I want to compare two strings case-insensitive. In ASCII strings it's okey to use string1.lower() == string2.lower()
and it works properly.
But with non-ASCII characters like Turkish İ
, it doesn't work as it should. To show this with example,
string1 = 'insanlar'
string2 = "İnsanlar"
print(string1.lower() == string2.lower()) # returns false but they are same words
How to achieve this task with non-ASCII characters?