解码经典asp中的查询字符串 [英] decode query string in classic asp
本文介绍了解码经典asp中的查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我以下字符串末尾带有"+"号.我已经使用javascript逸出功能按原样编码"+".但是,当我执行此URL时,我没有得到"+"导致错误的结果.如何解码此字符串,以便我可以获取正确的字符串?
http://xyz.com/test.asp?id=SF&pnam=722%25%20IT%20Sf%20Con%3C100%3E2year21+
谢谢
hi all,
i have following string with "+" sign in the end. I have used javascript escape function to encode "+" as it is. But when i execute this url, i am not getting "+" leading wrong result. How to decode this string so that i will get proper string?
http://xyz.com/test.asp?id=SF&pnam=722%25%20IT%20Sf%20Con%3C100%3E2year21+
Thanks
推荐答案
尝试一下:
http://xyz.com/test.asp?id=SF&pnam=722%25%20IT%20Sf%20Con%3C100%3E2year21%2B
+ 符号的URL编码char为%2B
希望这会有所帮助.
Try this:
http://xyz.com/test.asp?id=SF&pnam=722%25%20IT%20Sf%20Con%3C100%3E2year21%2B
The URL encoding char for a + sign is %2B
Hope this helps.
这篇关于解码经典asp中的查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文