A guy called Yuri brought this up a while ago but no one got back to
him and now I have the same problem.
I have an xml file which contains special characters such as é
etc. The DTD declares these enitities and assigns them the correct
unicodes (such as é)
Now, when I've loaded the xml and converted it using the DOM and then
Console.Writelined() it, it all looks good.
Then I write it to a file thus:
FileInfo myFile = new FileInfo(filePath);
StreamWriter sw = myFile.CreateText();
sw.Write(html);
sw.Close();
When I the open the file it has replaced the characters with rubbish
such as "É".
The xml doc is utf-8 encoded (changing encoding does not appear to
make a difference)
Does anybody know what I'm missing here?