How to grab web page in chinese

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 grantliu 的 blog

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
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top