I have uploaded some tab-delimited .txt files on my web site (actually run on my computer, ie localhost, for now), and now I try to retrieve the data from those files.
I do this by calling a vb file containg the sub below.
Everything works great, except that the sub won't recognise unicode characters. I can split the resulting string using vbnewline and vbtab, but already in the sub in question, the string doesn't understand the Swedish letters ÃÂ¥ÃÂ¤ÃÂ¶, apostrophes and more.
Any help would be greatly appreciated!
Shared Function getTextfile(ByVal FullPath As String, Optional ByRef ErrInfo As String = "") As String
Dim strContents As String = ""
Dim objReader As StreamReader
objReader =New StreamReader(FullPath) 'UTF8Encoding?
strContents = objReader.ReadToEnd()
ErrInfo = Ex.MessageCatch Ex As Exception
View Complete Post