try { //get date from web url // Create a new WebClient instance. WebClient myWebClient = new WebClient(); // Download the Web resource and save it into a data buffer. byte[] myDataBuffer = myWebClient.DownloadData (this.textBox2.Text); // Display the downloaded data. //string download = System.Text.Encoding.ASCII.GetString(myDataBuffer); string download = System.Text.Encoding.GetEncoding("GB2312").GetString(myDataBuffer); richTextBox1.Text=download; } catch(Exception _e) { MessageBox.Show(_e.Message); }
How to grab web page in chinese
最新推荐文章于 2022-01-18 14:14:45 发布