Hi,
I'm trying to read in a file written in French.
StreamReader sr = new StreamReader(fn,System.Text.Encoding.UTF8);
string s = sr.ReadToEnd();
I can edit the file fn in VS and it looks fine. The variable s
receives all the data except characters with accents.
"Déclaration" appears with out the accented e. (may not display on
your browser)
Same thing with umlauted chars in a German file.
If I use the form:
StreamReader sr = new StreamReader(fn);
I can break after the statement and see that sr.CurrentEncoding is
UTF8. Still no luck with getting all of the string.
Must be missing something, but what?
Thanks!