Gujarati Text (in UTF-8) in your JSON Response : ભારત - સર્વ શ્રેષ્ટ દેશ છે.
Steps to set it correctly in Android Textview:
Steps to set it correctly in Android Textview:
- Copy Gujarati font in assest project directory
- Apply Gujarati font to textview, follow this steps.
- textView.setText(Html.fromHtml("YOUR UTF-8 Gujarati String HERE"));
This simple steps will display your all UTF-8 language text in android. Follow same steps for Punjabi, Tamil, Kannad, Bengali, Marathi language.
Hope this helps!
No comments:
Post a Comment