简体   繁体   English

Outlook将Unicode电子邮件地址转换为垃圾邮件

[英]Outlook Converts Unicode Email Address to Garbage

I am working on an ASP.NET project where we are updating all of our websites to support Unicode values. 我正在一个ASP.NET项目中,我们正在其中更新所有网站以支持Unicode值。 In one place, we are allowing users to enter their email address as Unicode. 在一处,我们允许用户以Unicode输入他们的电子邮件地址。 I use the following code snippet to display the "mailto" address hyperlink: 我使用以下代码片段显示“ mailto”地址超链接:

Response.Write("<a href='mailto:" + Server.UrlEncode(email.EmailAddress) + "'>" + email.EmailAddress + "</a>");

When I click on this link, it opens Outlook, but the email address displays as garbage text. 当我单击此链接时,它将打开Outlook,但电子邮件地址显示为垃圾文本。 Any ideas on how to resolve this issue? 关于如何解决此问题的任何想法?

From what I have heard, currently, email addresses only support ANSII characters, but Unicode characters are coming; 据我所知,目前,电子邮件地址仅支持ANSII字符,但即将出现Unicode字符。 That is why we are taking this step. 这就是我们采取这一步骤的原因。

Thanks for your time. 谢谢你的时间。

If using Internet Explorer, do the following: 如果使用Internet Explorer,请执行以下操作:

Tools >> Internet Options >> Advanced tab >> International grouping 工具>> Internet选项>>高级选项卡>>国际分组

Check the "Use UTF-8 for mailto links" box 选中“将UTF-8用于mailto链接”框

This should cure your ills. 这应该可以治愈您的病。 The mailto URL still shows up as UTF-8 hex encoded in the status bar, but Outlook now proerly fills in the To: field. mailto URL仍显示为状态栏中的UTF-8十六进制编码,但是Outlook现在正确地填写了“收件人:”字段。

Hope this helps. 希望这可以帮助。

Cheers, Chris 克里斯,干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM