URL中的加号字符已转换为Linux框上的空格 [英] Plus character in URL transformed to space on a linux box

查看:111
本文介绍了URL中的加号字符已转换为Linux框上的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试Play!在Windows和Ubuntu上.我有一个接受email参数的操作方法.

I'm testing Play! on Windows and Ubuntu. I have an action method that accepts an email parameter.

当我传递包含加号的电子邮件地址(例如abc+d@gmail.com)时,在Windows上可以正常使用,而在Ubuntu框上,我将abc d@gmail.com分配给email参数.

When I pass an email address that contains a plus sign (e.g. abc+d@gmail.com), on Windows it works as expected, while on my ubuntu box I get abc d@gmail.com assigned to the email parameter.

以前有人遇到过这种情况吗?我在Play之前没有前端代理-在两种情况下,它都可以直接访问相同版本的Play(1.2.x-c40cf37,在1.2.4之后),具有相同的application.mode = dev,几乎相同配置.

Has anyone encountered this situation before? I have no front-end proxy in front of Play - in both cases, it's direct access to the same version of Play (1.2.x-c40cf37, somewhat after 1.2.4), with the same application.mode = dev, pretty much the same config.

我无法调试linux机器-它在Amazon EC2实例上,并且Java调试协议对我来说太慢了.如果找不到其他方法,则必须在VM中安装本地unbutu并在其中进行调试.在此之前,我还有其他有用的提示可以尝试吗?

I can't debug the linux box - it's on an Amazon EC2 instance, and the Java debugging protocol is slow as hell for me. If I can't find another way, I'll have to install a local unbutu in a VM and debug it there. Before I do that, are there any other helpful tips I could try?

推荐答案

这是标准行为.

在URL上,空格可以用+表示.您需要使用%20对其进行转义.

On a URL spaces can be represented by +. You need to escape it using %20.

这篇关于URL中的加号字符已转换为Linux框上的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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