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