开发者

How to decode URL in classic asp if the url is pass throuh encodeURI in javascript?

开发者 https://www.devze.com 2023-04-04 13:16 出处:网络
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=\" +

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%2开发者_如何学运维520%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


If you natively read the query string value, it should already be decoded.

For example: Request.QueryString("val").

0

精彩评论

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

关注公众号