如何将unicode从html转换为常规单词

本文关键字:转换 常规单 html unicode | 更新日期: 2023-09-27 18:05:17

htmlCode = client.DownloadString("http: //abc.com");

执行时,html具有unicode字符,如来这。如何将其正确转换并显示在文本框中?

如何将unicode从html转换为常规单词

尝试使用:

WebClient client = new WebClient();
TextBox1.Text = HttpUtility.HtmlDecode(client.DownloadString("http://abc.com"));