Search code examples
androidencodinghindi

Android: How can I make this "समोसा" appear as Hindi characters in my app?


I have these codes that are from a database. They represent Devangari (Hindi) script:

समोसा

I have a Hindi font installed on my phone.

How I get these codes to display as Hindi script in my Android app?


Solution

  • for a TextView, try .setText(android.text.Html.fromHtml("समोसा")