开发者

How to include German characters in mailto href in browser?

开发者 https://www.devze.com 2023-01-30 16:44 出处:网络
I want a simple mailto tag that 开发者_StackOverflowsupports special (German) characters in email body:

I want a simple mailto tag that 开发者_StackOverflowsupports 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>

On my machine Outlook generated an email with body as:

START Ä ä Ö ö Ü ü ß END

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

START Ä ä Ö ö Ü ü ß END

Where does the problem lie?


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

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,

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


There is no solution.

Try setting up Thunderbird as your default mailto: handler and open the link. Then set up Outlook and open it again.

Thunderbird will display the body correctly while Outlook goes berserk...

0

精彩评论

暂无评论...
验证码 换一张
取 消