Android Question Problem with accented words reading a .txt file

FERNANDO SILVEIRA

Active Member
Licensed User
Hello guys,

I'm reading words from a .txt file to a list but some accented words are replaced by a "?".
Is there something I have to do in order to preserve the original accented words?

I read some threads about UTF8 conversion. Do I have to byte-convert each caracter or is there an option applied while reading the file that does the trick?


B4X:
Dim lstWords1, lstWords2 As List
lstWords1 = File.ReadList(File.DirAssets, "tabpalavras.txt")
Log(lstWords1)
Resulting data read from the file:

(ArrayList) [AVI�O, BOLA, CASA, COPO, DADO, FACA, FLOR, FOGO, FOTO, GATO, LE�O, MALA, MENINA, MENINO, QUEIJO, SUCO, TREM, X�CARA, C�MARA]

Regards,
Fernando
 

Attachments

kisoft

Well-Known Member
Licensed User
I have a similar problem and I found the answer. Thank you too DonManfred.
 
Last edited:
Top