>>> sys.getdefaultencoding()
'utf-8'
>>> s = 'iı'
>>> s.upper()
'II' # should be 'İI'
>>> t = 'Iİ'
>>> t.lower()
'ii' # should be 'ıi'
>>> unicodedata.name('ı') # The small dotless one
'LATIN SMALL LETTER DOTLESS I'
>>> unicodedata.name('I') # The capital dotless one
'LATIN CAPITAL LETTER I'
>>> unicodedata.name('i') # The small 'i'
'LATIN SMALL LETTER I'
>>> unicodedata.name('İ') # The corresponding capital one
'LATIN CAPITAL LETTER I WITH DOT ABOVE'
The other non-ascii turkish characters 'şŞğĞöÖçÇüÜ' are correctly
handled by case conversion methods. |