Vik0809
Vik0809

Reputation: 379

how to display special characters using android studio

I can't display special characters like: "ü, ä, ö" etc, because I get the error: "unmappable character for encoding utf-8". I am using the Android Studio.

How to fix this?

Thanks a lot for your answers. But when I use the encoding part, then no errors appear anymore, but it looks like this:

enter image description here

The texts are defined in a String[][]

Upvotes: 1

Views: 2085

Answers (1)

sofi37
sofi37

Reputation: 333

You can show it as html:

    textview.setText(Html.fromHtml("ü, ä, ö"));

and you don`t need to change encoding.

Upvotes: 1

Related Questions