I am now having an issue where Celsius symbol gets read as C instead of °C.
Looks like the encoding the culprit. I tried to do this:
using (StreamReader sr = new StreamReader(this._inFilePath,System.Text.Encoding.Unicode ,true))
instead of
using (StreamReader sr = new StreamReader(this._inFilePath))
but I am now getting garbage....does the original file encoding have to match the StreamReader encoding? I am using compact framework 2.0.
I have found this online, but if use this I have read it all into a byte array, detect the end of each line,convert it to Unicode, and then proceed with a program logic. Anyone used this class?