Read Extended Ascii characters from a text file (Return "?")

energypf

Member
Licensed User
Longtime User
I have read from a text file that contains characters like this "•", but when I go to read it all comes back to a bad character. How do I read the content? I tried with different encoding.

thanks
 

energypf

Member
Licensed User
Longtime User
I tried to read from a file that contains this character "•" Bullet, but when I read it back to me a bad character. Why?
 

Attachments

  • Nuovo documento di testo.txt
    49 bytes · Views: 184
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Doesn't seem to me it's a utf-8 encoded file. Tried saving it in utf-8 and reopening it?
 
Upvote 0

webjefe

Member
Licensed User
Longtime User
Read a Windows Text File in Unix/Android

This is what works for me for my Spanish Help file.
Now I can read my file "En Español"

Dim StrCode
StrCode = "ISO-8859-1"
TR.Initialize2(File.OpenInput(File.DirAssets, FileName), StrCode)

You can also try other Unicode Formats
 
Upvote 0
Top