1

I am developing an Android app which needs to support two languages Hindi/English. I am able to convert the whole app UI in Hindi language but the problem is that I don't know how to fetch Hindi characters or string from edittext.

As I am fetching data in general way:

String userName=_userEdt.getText().toString();

but userName string does not contains any data in Hindi mode.How to I get the word like हिन्दी from edittext.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Ricky Khatri
  • 952
  • 2
  • 16
  • 42
  • what is being set to userName when you execute this line? – Waqas Mar 05 '13 at 05:33
  • it showing unformated data like small boxes. – Ricky Khatri Mar 05 '13 at 05:35
  • 1
    i see, you need to download hindi fonts and then associate it with the textview, for reference: http://stackoverflow.com/questions/8602939/displaying-non-english-specifically-hindi-characters-on-android-device – Waqas Mar 05 '13 at 05:51

1 Answers1

0

Download the hindi font “mangal.ttf” supported file and copy it in your font folder, which is created in assets folder. Try this way for implementing multilingual support in app development.