标签: c# html unicode webclient
htmlCode = client.DownloadString("http: //abc.com");
执行时,html具有unicode字符,例如来这。如何正确转换然后显示在文本框中?
答案 0 :(得分:1)
尝试使用:
WebClient client = new WebClient(); TextBox1.Text = HttpUtility.HtmlDecode(client.DownloadString("http://abc.com"));