问号在一个url变量的中间? [英] Question mark in the middle of a url variable?
本文介绍了问号在一个url变量的中间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我有一个变量来通过一个网址,并且它有一个问号,我是否需要转义问号?如果不是,我怎么能确保它通过像它应该?对不起,如果这是一个简单的问题,但我将需要此信息,并根据答案,我可能需要现在改变的东西,如果我不知道前进,将是一个混乱。
%3F 。解决方案
但是,您应该使用适当的编码器来完成整个工作,而不是手动编码字符。
If I have a variable to pass through a url and it has a question mark in it, do I just need to escape the question mark? If not how can I make sure it passes through like it's supposed to? Sorry if this is a simple question but I will need this info down the line and depending on the answer I might need to change stuff now that will be a mess if I go forward without knowing.
解决方案
A question mark URL encodes as %3F
. But you should use a proper encoder for the whole thing rather than manually encoding a character.
这篇关于问号在一个url变量的中间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文