至mailto HREF未按预期在浏览器 [英] mailto href not working as expected in browser

查看:148
本文介绍了至mailto HREF未按预期在浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个简单的mailto标签,支持在电子邮件正文特(德国)字符:A A○○U Uß

I wanted to write a simple mailto tag that supports special (german) characters in email body: Ä ä Ö ö Ü ü ß

我写我的code。在下列方式:

I wrote my code in the following fashion:

<html>
    <head>
        <title>TEST PAGE</title>
    </head>
    <body>
        <h1>Test</h1>
        <a href="mailto:test@test.com?subject=test&body=START%20%C3%84%20%C3%A4%20%C3%96%20%C3%B6%20%C3%9C%20%C3%BC%20%C3%9F%20END">Email link</a>
    </body>
</html>

我测试了我的机器上,它工作得很好,

I tested it on my machine and it worked fine,

前景产生一封电子邮件,身体为:

outlook generated an email with body as:

START A A○○U UßEND

START Ä ä Ö ö Ü ü ß END

然而,它并不在我的德国客户端工作。
生成的电子邮件正文是:

however, it does not work at my german client's end. The email body generated is:

启动澶A-öAOE那张ßEND

START Ä ä Ö ö Ü ü ß END

在哪里请问问题出在哪?
是否有此错误的任何决议?

Where Does the problem lie ? Is there any resolution for this bug ?

推荐答案

罗伯特是正确的,有一个名为一个选项:启用的mailto支持UTF-8:协议
在Outlook @

Robert was Right, there is an option called : Enable UTF-8 support for mailto:protocol in Outlook @

工具>选项>邮件格式>国际选项> [X]启用的mailto支持UTF-8:协议

Tools > Options > Mail Format > International Options > [x] Enable UTF-8 support for mailto:protocol

我启用该选项,并在客户端的机器的工作,

I enabled that option and it worked in the client's machine,

虽然我不希望PPL改变自己机器的配置前景支持我的Web应用程序,但似乎这是可能的唯一途径,现在,我愿意接受更多的建议,虽然

Although I wouldn't expect ppl to change their machine's outlook config to support my web app, but it seems that this is the only way possible right now, I am open to more suggestions though

这篇关于至mailto HREF未按预期在浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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