Normalize Unicode Alphabets by Replacing Accents With Regular Letters (Kotlin)

October 20, 2018
val value = Normalizer.normalize("fůňķŷ 京都市 hello", Normalizer.Form.NFD).replace("\\p{M}".toRegex(), "")
assertThat(value, Is("funky 京都市 hello"))
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.