Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
替换+;在html Gmail/Android chrome中使用空格_Android_Html_Google Chrome_Gmail_Mailto - Fatal编程技术网

替换+;在html Gmail/Android chrome中使用空格

替换+;在html Gmail/Android chrome中使用空格,android,html,google-chrome,gmail,mailto,Android,Html,Google Chrome,Gmail,Mailto,嗨,我有一个使用mailto的web应用程序 <a href="mailto:someone@example.com?subject=This%20is%20the%20subject&amp;cc=someone_else@example.com&amp;body=This%20is%20the%20body" class="">Send email</a> 但是我所做的并没有米,它总是用+符号替换空格,试着解码你的字符串 就用吧 这将帮助您解码U

嗨,我有一个使用mailto的web应用程序

<a href="mailto:someone@example.com?subject=This%20is%20the%20subject&amp;cc=someone_else@example.com&amp;body=This%20is%20the%20body" class="">Send email</a>


但是我所做的并没有米,它总是用+符号替换空格,试着解码你的字符串

就用吧

这将帮助您解码URIencode

如果您指的是PHP(HTML)问题,请执行相同的操作:

$encodeString = urlencode($encodeString);
echo $encodedString;
因此字符串将正确显示。 看这个

好的,但是当我第三次阅读你的问题时:你可以在这些HTML案例中使用空格。这是一个安卓错误。只要用这个:

<a href="mailto:someone@example.com?subject=This is the subject&amp;cc=someone_else@example.com">Send Mail</a>


replicate of:Foaster这是另一个问题您发送的链接是关于java编程的,并告诉我们如何使用intents,但我的问题是关于html的。我也有同样的问题。我们在iOS上测试它,它在两种浏览器(Chrome和Safari)上都能工作@WooCaSh是的,它在iOS上工作,但在android上不工作。不知道为什么。@Noman,我知道时间不长,但可以用最新的Chrome和最新的Gmail在android上再次测试。我看到+,仍然存在同样的问题,但是现在body=值甚至没有填充到编写器的主体中。我已经创建了一个测试页面来测试尽可能多的案例选择一个具有BODY=值的对象
<a href="mailto:someone@example.com?subject=This is the subject&amp;cc=someone_else@example.com">Send Mail</a>