Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Unicode character in Android webview

I did an android application which displays malayalam ascii encoded fonts in webview. Now I have to display unicode character set (like &#3384 ; &#3394 ; &#3370 ; &#3405 ; &#3370 ;) but it didn't displaying properly on webview. The text is getting unreadable and meaningless.

  1. In Older impl I am having the text like this Y¢j¤lcÉd¤j«: Jt´Tl¡l¤ a¢c·
  2. In current impl its like &#3384 ; &#3394 ; &#3370 ; &#3405 ; &#3370 ;

So I would like to know is it possible to convert Unicode (ie, from 2) format to the ASCII (ie, to 1) in android ?

The font used is thoolika.ttf.

Thanks in Advance @nish

like image 431
MobDev Avatar asked Jun 30 '26 05:06

MobDev


1 Answers

Take a look at this: http://software.clapper.org/javautil/api/org/clapper/util/html/HTMLUtil.html

like image 117
Vu Bui Avatar answered Jul 02 '26 19:07

Vu Bui



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!