Reading German special characters using a streamreader with currentEncoding = system.text.utf8encoding
Posted on 2007-11-17
I'm using a streamreader to read a text file.
The streamreader.currentencoding is system.text.utf8encoding
The first line of my test text file is the following string of characters:
Uppercase A with an umlaut (HTML code would be Ä)
Lowercase a with an umlaut (ä)
Uppercase O with an umlaut (Ö)
Lowercase o with an umlaut (ö)
Uppercase U with an umlaut (Ü)
Lowercase u with an umlaut (ü)
The German lowercase "SZ" symbol (ß)
This is interpreted as a series of unknown characters.
What can I do to make the stream reader interpret the text correctly.
Thanks very much in advance,