Android Question Special characters

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi to all.
I am working on a tablet that has special chars related to its country Language. When used with standard Apps, for example writing phone messages, there are no problems (of course).
I have to do an App that displays some Spinners with words containing special characters, that are read from a file, which is preloaded in the tablet. A special char, is 'ã', for example.
The Log in the debugger doesn't show that character, but a black icon with a question mark. Moreover, when I Add the words with such special chars, in a Spinner, I get the same behavior, namely a question mark icon instead of the special char. Is it possible to resolve this issue?
Thanks in advance.
 

MarcoRome

Expert
Licensed User
Longtime User
Try with this file in attachment:

B4X:
Dim a As String = File.ReadString(File.DirAssets, "test.txt")
Log(a)

ã Ş Ç ğ Σ Σ

What you see. is it right ?
 

Attachments

  • test.txt
    21 bytes · Views: 219
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi. The file is a txt file like this attached. The Language is Portuguese. Thanks.
 

Attachments

  • test_char.txt
    1.5 KB · Views: 235
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Ok. Thanks. I have seen the problem: when saving the file with NotePad, must be sure that it is UTF8 text file. Mine was ANSI. I got the file from Windows programs, and didn't focus this detail. Thanks to all again.
 
Upvote 0
Top