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?
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
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