I recommend using System.Net.WebUtility.HtmlDecode and NOT HttpUtility.HtmlDecode
.
This is due to the fact that the System.Web
reference does not exist in Winforms/WPF/Console applications and you can get the exact same result using this class (which is already added as a reference in all those projects).
Usage:
string s = System.Net.WebUtility.HtmlDecode("é"); // Returns é
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…