Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Trying to normalize 'Nøgne Ø' to 'Nogne O'
groovy:000> java.text.Normalizer.normalize('Nøgne Ø', java.text.Normalizer.Form.NFD);
===> Nøgne ?o?
groovy:000> java.text.Normalizer.normalize('Nøgne Ø', java.text.Normalizer.Form.NFC);
===> Nøgne Ø
groovy:000> java.text.Normalizer.normalize('Nøgne Ø', java.text.Normalizer.Form.NFKD);
===> Nøgne ?o?
groovy:000> java.text.Normalizer.normalize('Nøgne Ø', java.text.Normalizer.Form.NFKC);
===> Nøgne Ø
groovy:000>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment