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?