Reputation: 154
i get html source of page with this line of code
WebClient client = new WebClient();
string sPage = client.DownloadString(url);
page code package is iso-8859-1
but exist unicode string like below in html source
<span title="ضافه"
how can i convert this code to Unicode string in c# ?
Upvotes: 0
Views: 232
Reputation: 116178
string s = HttpUtility.HtmlDecode(@"<span title=""ضافه");
Upvotes: 1