开发者

What kind of encoding is this?

开发者 https://www.devze.com 2022-12-23 17:30 出处:网络
What kind of encoding do you 开发者_StackOverflowuse to encode http:// as http%253A%252F%252F HttpUtility.UrlEncode gives http%3a%2f%2fWhat you\'re looking at is text that has been passed through Url

What kind of encoding do you 开发者_StackOverflowuse to encode http:// as http%253A%252F%252F

HttpUtility.UrlEncode gives http%3a%2f%2f


What you're looking at is text that has been passed through UrlEncode twice.

The second time changes the % symbols to %25.

It's unusual to pass an entire URL through UrlEncode anyway, unless you are passing it as a parameter in another URL (for redirection, for instance).


It looks like UrlEncode was called twice, encoding the literal % as %25 (which is the correct result, by the way).

0

精彩评论

暂无评论...
验证码 换一张
取 消