1 private void MakeHTML(string url,string savefile)
2 {
3 WebClient wc = new WebClient();
4 byte[] bs = wc.DownloadData(url);
5 string html = Encoding.GetEncoding("GB2312").GetString(bs);
6 string saveFile = Server.MapPath(savefile);
7 StreamWriter sw = new StreamWriter(saveFile, false, Encoding.GetEncoding("GB2312"));
8 sw.Write(html);
9 sw.Close();
10 }