WebClient.DownloadString result is not match with Browser result 2

后端 未结 3 1332
孤街浪徒
孤街浪徒 2021-01-27 03:33

The following code:

WebClient wc = new WebClient();
wc.Encoding = Encoding.UTF8;
string Url = "http://www.tsetmc.com/t         


        
3条回答
  •  忘掉有多难
    2021-01-27 04:28

    That's not an encoding problem, i think it relates with compression, gzip in this case. Read Uncompressing gzip response from WebClient. That should fix your problem.

提交回复
热议问题