HtmlEncode
顾名思义,对html进行编码
页面源代码中:<form id="form1" name="form1" method="post" action="Default2.aspx?Name=DK51700%u4e2d%u7ee7%u7ad9" >
地址栏中:http://localhost:8690/WebSite1/Default2.aspx?Name=DK51700中继站
HtmlDecode后输出:DK51700中继站
UrlEncode
顾名思义,对url地址进行编码
页面源代码中:<form name="form1" method="post" action="Default2.aspx?Name=DK51700%u4e2d%u7ee7%u7ad9" id="form1">
地址栏中:http://localhost:8690/WebSite1/Default2.aspx?Name=DK51700%d6%d0%bc%cc%d5%be
UrlDecode后输出:DK51700中继站
UrlPathEncode
对http://之后的内容进行编码
参考网站:http://www.cnblogs.com/nother/archive/2008/11/18/1336223.html
http://blog.youkuaiyun.com/spring21st/article/details/4710608
http://www.cnblogs.com/wuvist/archive/2005/05/10/152112.html