protected void Page_Load(object sender, EventArgs e)
{
string url = "文件上(传)篇.doc";
Response.Write(Server.UrlEncode(url)); //Server.UrlEncode的编码方式是按照本地程序设置的编码方式进行编码的,可以在web.config 中更改
Response.Write("<br>");
Response.Write(Server.UrlDecode(url));
Response.Write("<br>");
Response.Write(HttpUtility.UrlEncode(url,System.Text.Encoding.GetEncoding("gb2312"))); //默认是以UTF8对URL进行编码,可以更改
Response.Write("<br>");
Response.Write(HttpUtility.UrlDecode (url));
}