tags:

views:

134

answers:

2

What kind of encoding do you use to encode http:// as http%253A%252F%252F

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

+4  A: 

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

Mark Rushakoff
+11  A: 

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).

richardtallent
yeah.. i just found that out too :)
seanlinmt