How to view a Georgian language string in a TextView?

212 Views Asked by At

If a TextView has a georgian text, I see only spaces.

i.e

String georgString = "("+"სახლი ქუჩის ბოლოში"+")";

I see:

"(        )"
1

There are 1 best solutions below

1
Simon Dorociak On

If a TextView has a georgian text, I see only spaces.

I found quick solution. You need to add your gregorian text into strings.xml and then it will work.

<string name="test">(სახლი ქუჩის ბოლოში)</string>

// an usage
textView.setText(getString(R.string.test));

(I just tested it and it works. Probably if you are assigning text directly there is problem with encoding but with an usage of resources you don't have to deal with it). Let me know.