Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用这行代码得到页面的html源代码
WebClient client = new WebClient(); string sPage = client.DownloadString(url);
页面代码包是iso-8859-1
但在 html 源代码中存在如下所示的 unicode 字符串
<span title="ضافه"
如何在 c# 中将此代码转换为 Unicode 字符串?
string s = HttpUtility.HtmlDecode(@"<span title=""ضافه");