Created
December 14, 2011 02:46
-
-
Save clstokes/1475022 to your computer and use it in GitHub Desktop.
Trying to normalize 'Nøgne Ø' to 'Nogne O'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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