Escape does not encode characters with 69: *,+,-,.,/,@,_,0-9,a-z,a-z
encodeURI does not encode 82 characters:!,#,$,&, ', (,), *,+,,,-,.,/,:,;,=,?,@,_,~,0-9,a-z,a-z
encodeURIComponent does not encode 71 characters:!, ', (,), *,-,.,_,~,0-9,a-z,a-z
1.
Js:escape: Decoding using: unescape
C#:httputility.urlencode decoding using: Httputility.urldecode
2.
Js:encodeuri: Decoding using decodeURI ();
C #: decodeURIComponent
3.
Js:encodeuricomponent decoding using: decodeURIComponent ()
C#:[httpcontext.current.] Server.urldecode decoding using: [HttpContext.Current.] Server.URLEncode
In fact, escape,encodeuri,encodeuricomponent can be used Httputility.urldecode or server.urldecode decoding effect is the same.
The only difference is that httputility.urldecode is UTF8 encoded by default,Server.urldecode is decrypted based on the default encoding of the Webconfig configuration.
C # decoding corresponding to JS encryption