|
-
Mar 11th, 2011, 01:10 AM
#1
Thread Starter
Fanatic Member
Chinese Characters Website WebClient
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?
-
Mar 11th, 2011, 01:46 AM
#2
Re: Chinese Characters Website WebClient
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.
-
Mar 16th, 2011, 08:36 AM
#3
Thread Starter
Fanatic Member
Re: Chinese Characters Website WebClient
 Originally Posted by jmcilhinney
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.
System.Text.Encoding.UTF8 doesn't work
System.Text.Encoding.Unicode doesn't work.
Google is silent.
Any other answer? Anyone else tried? There has to be an easy way. Do we need to look at actual headers returned by the site?
Last edited by teguh123; Mar 19th, 2011 at 07:58 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|