https://kotlinlang.org logo
Title
u

user

07/16/2022, 7:01 PM
java/kotlin Normalizer fails to normalize some accented letters I noticed that the Normalizer leaves some non-ascii letters alone, such as the first letter in the name of the Polish city Łódź. Here are some more: import java.text.Normalizer fun main() { for (i in 0xC0..0x170) { val ch = Char(i) if (!ch.isLetter()) continue val norm = Normalizer.normalize(ch.toString(), Normalizer.Form.NFD) if (norm.length >= 2) { // println("'$ch' => '${norm[0]}' ${norm[0].code} '${norm[1]}' ${norm[1].code}") }...