3

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.

Bibi Tahira
  • 1,082
  • 5
  • 15
  • 39

0 Answers0