Reputation: 446
I have a url that is encoded in javascript using encodeURI function:
javascript code:
encodeURI("form.asp?opt=" + ai_opt + "&val=" + escape(ls_val) + "&col=" + as_col + "&sg=" + ls_sg + "&oldval=" + escape(ls_old_val)
Sample Output:
/form.asp?opt=1&val=Field%2520Fisher%2520Waterhouse%2520%2528London%2529&col=loc
How to decode the query string values in server side using classic asp?
I should able to extract correct values from query strings:
opt = 1
val = Field Fisher Waterhouse (London)
col = loc
Upvotes: 1
Views: 7527
Reputation: 17488
If you natively read the query string value, it should already be decoded.
For example: Request.QueryString("val")
.
Upvotes: 5