I must show a text in an EditText area in Android.
All works fine, but if the text uses vowel chars that have accent,
for example :
"è", "ì", "à", "ò" "ù",
a code is shown, not the right character.
I simply use
String text= myEditText.getText().toString();
to get the String, I store the string in a file and use
myEditText.setText(text);
to set the String text in the EditText area when I retrieve the data in a second moment.
I think the problem is during saving data to the file. If your file doesn’t take a utf8 character set when you save your data, then you read it back without those characters. Therefore make sure you save it correctly:
When you read it back, then you should be able to use setText() on your myEditText as you do now.