How to grab web page in chinese

xiaoxiao2021-03-06  64

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);

转载请注明原文地址:https://www.9cbs.com/read-89625.html

New Post(0)