Search code examples
androidhtmllang

android supporting arabic in html tags?


I want to use Arabic language inside html tags in android application,
the html tags are in the strings.xml file and its works perfectly with English language,
when I added Arabic version of the strings.xml file every thing is OK but the html string becomes understandably language ??
I tried to add

<head>
    <meta http-equiv="Content-Type" ; content="text/html; charset=utf-8" ; />
</head>

but the problem still. how can I fix it ??


Solution

  • yesss I found it,
    I have to load the text this way in my activity
    aboutus.loadData(stringData, "text/html; charset=UTF-8", null);