Read a txt file with Spanish chars not displayed correctly
Erel,
I followed your instructions and saved the file without BOM. I included the new file in my DirAssets. When I read the file from DirAssets, it works fine. However, when i copy th file from DirAssets to File.DirDefultExternal and then use this file, it does not work.
If File.Exists(File.DirAssets, Filename & ".txt") Then
File.Copy(File.DirAssets, Filename & ".txt", SDCard.Data, Filename & ".txt")
...
I then fall into the same read code
Dim Reader As TextReader
Reader.Initialize(File.OpenInput(File.{either DirAssets or DirDefaultExternal}, Filename & ".txt"))
ConsentText = Reader.ReadAll
When I copy then read it, i get the question marks for the spanish characters.
When I read it from DirAssets it works fine.
Any ideas? I want to have the file on my SDCARD and not in DirAssets.
Thanks,