public static String transliterate ( final String text , final String id ) { Transliterator transliterator = Transliterator . getInstance ( id ) ; return transliterator . transform ( text ) ; }
Converts the characters of the given text to the specified script .