String Text = "This is example ”Text”";
Text = WebUtility.HtmlDecode(Text);
System.IO.File.WriteAllText(@"c:\x.txt", Text, Encoding.ASCII);
正确的输出:
This is example ”Text”
x.txt 的输出:
This is example ?Text?
String Text = "This is example ”Text”";
Text = WebUtility.HtmlDecode(Text);
System.IO.File.WriteAllText(@"c:\x.txt", Text, Encoding.ASCII);
正确的输出:
This is example ”Text”
x.txt 的输出:
This is example ?Text?