Can you solve this? I have a url: PAZG/dsummary.aspx?offercode=DSL0PP152 Which needs to be encoded as: PAZG%252Fdsummary.aspx%3Foffercode%3DDSL0PP152 I have tried urlencode, but then instead of %252F I get %2F, but the rest of it seems correct. Is there other way to encode to get to what I need?
%252F is simply %2F encoded. So it's encoded twice. You can see this here: http://www.string-functions.com/urldecode.aspx Type %252F in the box and decode it. It will show %2F. urldecode is correct, and whatever you did before was wrong.