How to convert the java String to different languages <p>Currently I am writing some text to pdf. based on the user locale, the language must be changed(ex: spanish, chineese, german).</p> <p>Is there any API for this conversion? and Better approach?</p>