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://之后的内容进行编码