MailTo链接中损坏的重音字符 [英] Broken Accented Characters in a MailTo Link
问题描述
我正在尝试创建一个包含法语重音字符作为主题和电子邮件正文的mailto链接。编码字符的HTML和URI都不起作用。这是我的代码:
I'm trying to create a mailto link that contains french accented characters as the subject and email body. Both HTML and URI encoding the chars does not work. Here is my code:
<a href="mailto:%20?subject=ce%20titre%20est%20cass%C3%A9.&body=travaux%20deja!%20cesser%20d'%C3%AAtre%20t%C3%AAtu">SEND EMAIL</a>
没有URI编码就会出现相同的结果:
Same result occurs without URI encoding:
<a href="mailto:?subject=ce titre est cassé&body=travaux deja! cesser d'être têtu">SEND EMAIL</a>
无论我如何操作,新电子邮件都会打开并显示残破的字符。 URI编码空格和换行符正常工作,但不是ANSI的任何内容都会被破坏。我应该注意到,我正在测试英语和法语版本的MS Outlook 2007.任何人都知道如何让这个工作?
No Matter how i do it, the new email opens up with the broken characters. URI encoded Spaces and line-breaks work fine, but anything that is not ANSI is broken. I should note that I am testing in both english and french versions of MS Outlook 2007. Anyone know how to get this to work?
推荐答案
<在IE 8中它是一个设置选项。
工具 - >选项 - >高级。在国际下,选中使用UTF-8作为mailto链接选项。
In IE 8 its an setting option. Tools -> Options -> Advanced. Under International check the option "Use UTF-8 for mailto links".
在Windows XP下,默认情况下禁用此设置。
在Windows 7下默认启用它。
Under Windows XP this setting is disabled by default. Under Windows 7 its enabled by default.
希望这可以帮助您
这篇关于MailTo链接中损坏的重音字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!