开发者

What kind of encoding is this?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜