如何在浏览器的mailto href中包含德语字符? [英] How to include German characters in mailto href in browser?

查看:70
本文介绍了如何在浏览器的mailto href中包含德语字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个简单的mailto标记,该标记在电子邮件正文中支持特殊(德语)字符:

I want a simple mailto tag that supports special (German) characters in email body:

Ää​​ÖöÜüß

Ä ä Ö ö Ü ü ß

我以以下方式编写了代码:

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>

在我的计算机上,Outlook生成的电子邮件正文为:

On my machine Outlook generated an email with body as:

STARTÄäÖöÜüßEND

START Ä ä Ö ö Ü ü ß END

在我的德语客户端,生成的电子邮件正文为:

At my German client's end the email body generated is:

STARTÃÃäÃÃÜüßEND

START Ä ä Ö ö Ü ü ß END

问题出在哪里?

推荐答案

Robert是正确的,有一个名为的选项:启用对mailto:protocol的UTF-8支持 在Outlook @

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

工具>选项>邮件格式>国际选项> [x]为mailto:protocol启用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更改其机器的Outlook配置以支持我的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天全站免登陆