string strUrl = "http://gather.sohu.com/life/forecast/query.asp?cityname=";
strUrl =  strUrl + System.Web.HttpUtility.UrlEncode("北京", System.Text.Encoding.GetEncoding("gb2312"));
HttpWebRequest oRequest = (HttpWebRequest)WebRequest.Create(strUrl);HttpWebResponse oResponse  = (HttpWebResponse)oRequest.GetResponse();
StreamReader sr = new StreamReader(oResponse.GetResponseStream(), System.Text.Encoding.GetEncoding("GB2312"));string sResultContents = sr.ReadToEnd();
oResponse.Close();
byte[]  bytes = System.Text.Encoding.GetEncoding("gb2312").GetBytes(sResultContents);
FileStream fs = new FileStream("c:\\2.htm", FileMode.OpenOrCreate, FileAccess.Write);
fs.Write(bytes, 0, bytes.Length);
fs.Flush();
fs.Close();
MessageBox.Show("OK");