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.
htmlCode = client.DownloadString("http: //abc.com");
执行时,html 有来这等 unicode 字符。如何正确转换它然后显示在文本框中?
尝试使用:
WebClient client = new WebClient(); TextBox1.Text = HttpUtility.HtmlDecode(client.DownloadString("http://abc.com"));