问题
I have some string in different languages like this :
String aa = " أهلاً و سهلاً"; // arbic
String arr = "आपका स्वागत है";// hindi
String str1 = "Tübingen systemportefølje";
Strings tr2 = "Das ist nicht Englisch";
String str3 = "這是不是英語"; // chinese
i want to set these string in text view .i try in this way :
try {
final String s = new String(arr.getBytes(), "UTF-8");
abc.setText(Html.fromHtml(s));
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
and also try by adding font respective languages and set view . i only want to set this languages in textview. please give me a hint.
来源:https://stackoverflow.com/questions/15462171/display-different-languages-in-set-in-textview