Perl 5 has a module on CPAN named Text::Unidecode that transliterates Unicode into ASCII. So, for instance, if you hand it the string "“北亰 — it’s the best”" it hands back the string "\"Bei Jing -- it's the best\"". A quick search for Java libraries to do the same thing only turned up code that would strip Unicode characters or turn accented characters into non-accented characters.
Does anyone know of a Java library that produces similar output to Text::Unidecode?
A quick Google says: http://junidecode.sourceforge.net/ - but looks like it hasn't been updated for a while.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With