I am trying to read some foreign language files that are sitting own copyfiles.
The text was copied from Google Translate and then pasted into TextEdit with the preference set to Save UTF8. When I read the file in with the below it is full of odd characters. If I change to UTF16 I can see the text properly in debug but it doesn’t display in the textfields properly. What am I mixing up here?
b = "Tips_FR"+x.ToText + ".txt" f = SpecialFolder.Resource(b) if f <> nil then Try input = TextInputStream.Open(f) input.Encoding = Encodings.UTF8 aa = input.ReadAll aa = aa.right(aa.length-2) input.Close Catch e As IOException errorText = "File IO Error: " + e.Reason End Try