Is there an iconv with //TRANSLIT equivalent in java?

Posted by Keith on Stack Overflow See other posts from Stack Overflow or by Keith
Published on 2011-04-27T15:35:43Z Indexed on 2014/08/25 10:20 UTC
Read the original article Hit count: 588

Filed under:
|

Is there a way to achieve transliteration of characters between charsets in java? something similar to the unix command (or similar php function):

iconv -f UTF-8 -t ASCII//TRANSLIT < some_doc.txt  > new_doc.txt

preferably operating on strings, not having anything to do with files

I know you can can change encodings with the String constructor, but that doesn't handle transliteration of characters that aren't in the resulting charset.

© Stack Overflow or respective owner

Related posts about java

Related posts about iconv