我有从越南网站获取响应的简单代码:http: //vnexpress.net,但有一个小问题。第一次下载没问题,但下载后内容中包含未知符号如下:�\b\0\0\0\0\0\0�\a`I�%&/m....问题是什么?
string address = "http://vnexpress.net";
WebClient webClient = new WebClient();
webClient.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11 AlexaToolbar/alxg-3.1");
webClient.Encoding = System.Text.Encoding.UTF8;
return webClient.DownloadString(address);