标签:style blog http io color os ar 使用 java
escape不编码字符有69个:*,+,-,.,/,@,_,0-9,a-z,A-Z
encodeURI不编码字符有82个:!,#,$,&,‘,(,),*,+,,,-,.,/,:,;,=,?,@,_,~,0-9,a-z,A-Z
encodeURIComponent不编码字符有71个:!, ‘,(,),*,-,.,_,~,0-9,a-z,A-Z
JS: escape :
解码使用:unescape
C#:
HttpUtility.UrlEncode
HttpUtility.UrlDecode
JS: encodeURI :
解码使用decodeURI();
C#: decodeURIComponent
JS: encodeURIComponent :
解码使用decodeURIComponent()
C#:
[HttpContext.Current.]Server.UrlDecode
[HttpContext.Current.]Server.UrlEncode
标签:style blog http io color os ar 使用 java
原文地址:http://www.cnblogs.com/zhumengmeng/p/4056647.html