theEnchancedWinClient.WebClient.DownloadString("http://news.sohu.com/20050601/n225789219.shtml")
will produce garbages.
however I already put
WebClient.Encoding = New System.Text.UTF8Encoding
What should I have done?
Printable View
theEnchancedWinClient.WebClient.DownloadString("http://news.sohu.com/20050601/n225789219.shtml")
will produce garbages.
however I already put
WebClient.Encoding = New System.Text.UTF8Encoding
What should I have done?
Try each of the other standard encodings and see which works. Don't create an Encoding explicitly. The System.Text.Encoding class has a property each for the standard encodings, e.g. System.Text.Encoding.UTF8.