StreamReader.ReadLine() into a String UTF-8 Encoding
Posted on 2011-09-28
I have a small program where I am trying to read a text file, make some minor updates to some of the fields and then output to a new text file.
I'm having trouble with one field in the data. When I read the field I get incorrect encoding. I test the encoding of the file and get that it is UTF8 but this introduces sqaure boxes instead of certain characters when reading the field. The closest I get is using UTF7 but this removes two plus symbols.
I'm a bit lost, any help would be greatly appreciated.