Dim someString As String = Encoding.ASCII.GetString(someByteArray)
After researching for a while, I found out that the text file is encoded using UTF-8. Thus, switching it to the following code make it work properly:
Dim someString As String = Encoding.UTF8.GetString(someByteArray)
Encoding matters!
No comments:
Post a Comment