Streamreader interpreting special characters incorrectly
Posted on 2007-07-26
I'm using a streamreader to read a txt file in VB .NET, (for conversion of the data it contains to XML) and am coming up against the problem that the streamreader doesn't interpret special characters correctly: "á" is interpreted as "ý", while German vowels with Umlauts ("ä, ö, ü") are interpreted in &...; form (ä, ö ü, respectively).
The question is: Can I change the encoding the streamreader uses so that it interrprets the text correctly?"
Thanks very much in advance