如何将加号传递给URL? [英] How to Pass a Plus Sign to a URL?

查看:111
本文介绍了如何将加号传递给URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在将URL中的加号(+)作为参数传递时遇到问题,它是一个空格而不是加号。有谁知道我怎么能解决这个问题。



请注意我使用的是php代码。



谢谢

Hi,

I have a problem with passing a plus sign (+) in a URL as an argument, it comes as a space instead of the plus sign. do anyone know how can i solve this issue.

note that I'm using a php code.

Thanks

推荐答案

查找URL编码。官方PHP文档此处
Look up URL encoding. Official PHP document here


请参阅此处 [<一个HREF =https://www.google.co.uk/search?q=imagestone&aq=0&oq=imagestone&sugexp=chrome,mod=8&sourceid=chrome&ie=UTF-8#hl=en& ; sugexp = LES%3B&安培; gs_nf = 1&安培; TOK = CrkOg7Y6H3vxDLcgMda-ZQ&安培; PQ = imagestone&安培; CP = 11&安培; gs_id = 18&安培; XHR = T&安培; q = URL +加+符号&安培; PF = p与M. sclient = PSY-AB&安培; oq = url + plus + si& gs_l =& pbx = 1& bav = on.2,or.r_gc.r_pw.r_qf。& fp = bd66c17f7055854b& biw = 979& bih = 655target =_ blank标题=新窗口> ^ ]。


在URL中加号表示空格字符。您可以在网址中使用%2B 而不是加号。

这是一个快速编码或解码字符的在线工具:

http://meyerweb.com/eric/tools/dencoder/ [ ^ ]
Plus in a url means space character. You can use "%2B" instead of a plus sign in urls.
An here is an online tool to encode or decode characters rapidly:
http://meyerweb.com/eric/tools/dencoder/[^]


这篇关于如何将加号传递给URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆