//UrlEncode编码
System.Web.HttpUtility.UrlEncode(str);
//UrlEncode解码
System.Web.HttpUtility.UrlDecode(str);
Encoding gb2312 = Encoding.GetEncoding(“gb2312”);//Encoding.Default ,936
string start = System.Web.HttpUtility.UrlEncode(“重庆”, gb2312);
start =“%D6%D8%C7%EC”;
System.Web.HttpUtility.UrlDecode(“start ");
System.Web.HttpUtility.HtmlEncode(str);
System.Web.HttpUtility.HtmlDecode(str);