For anyone not familiar with the problem, the two variants of the letter "i" in Turkish are considered two separate letters but neither the dotless nor the dotted "i" is compatible with the non-Turkish "i" in lower and upper case:
* the lower case of upper case "I" is the dotless "ı" (not "i" as everywhere else)
* the upper case of lower case "i" is the dotted "İ" (not "I" as everywhere else)
This is basically a bug in the original specification (ca. 19th century) that was never fixed and now causes all kinds of problems for anyone trying to support it (because languages no longer live in isolation).