可操作消息不显示区域(UTF-8)字符 [英] Actionable Messages not displaying regional (UTF-8) characters

查看:86
本文介绍了可操作消息不显示区域(UTF-8)字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在查看可操作消息时遇到问题。即使我已经在电子邮件的HTML头内的 meta 标签中添加了有关UTF-8编码的信息,区域字符仍无法正确显示(?而不是实际字符): / p>

<元http-equiv = Content-Type content = text / html; charset = UTF-8>



但是,奇怪的是,当我将字符放入电子邮件正文时,字符可以正确呈现。此外,即使从日语中输入一个字符,也可以使可操作消息中的所有日语字符正确呈现(例如,西里尔字符则不能)。



让我想,这是Outlook(OWA和桌面)呈现消息的问题,而不是编码本身。似乎Outlook会自动选择对于正确显示消息而言最小的字符集,但它不会在消息的一部分中检测到可操作的消息内容。



到目前为止,我已经考虑过将局部字符放入不可见的div中(以便它们强制字符集):



< div样式= \ display:none; font-size:1px; line-height:1px; max-height:0px; max-width:0px; opacity:0; overflow:hidden; mso-hide:all; \> ;łśあД< / div>



看起来确实很恐怖,或者在HTML正文中添加了备用消息内容。



所以我的问题是,无论身体如何,我是否缺少任何无法正确渲染所有UTF-8字符的设置?



我正在通过EWS托管API发送消息。我尝试过在meta标记中设置其他字符集。

解决方案

您是否可以使用以下脚本尝试相同的有效负载通过SMTP发送?



https://github.com/ tony-zhu / SendActionableMessage



我们使用此脚本进行了一些国际化测试,所有字符均正确显示。


I have encountered a problem with viewing Actionable Messages. Regional characters are not showing correctly (? instead of the actual character), even though I've added information about UTF-8 encoding in meta tag inside the email's HTML head:

<meta http-equiv="Content-Type"content="text/html;charset=UTF-8">

What's peculiar, however, is that characters render correctly when I put them into email body. Furthermore, putting even one character from, let's say, Japanese, makes all the Japanese characters in Actionable Message render correctly (but not, for example, cyrillic characters).

That makes me think, it's some issue with Outlook (both OWA and desktop) rendering messages, not the encoding itself. It appears as if Outlook automatically picks the character set that's minimal for properly displaying the message, but it doesn't detect Actionable Message contents' as part of message.

The workaround I have thought of so far is either putting regional characters into invisible div (so that they 'force' the charset):

<div style=\"display:none;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;\">łśあД</div>

which looks really horrible, or adding backup message contents to HTML's body.

So my question is, is there any setting I am missing that doesn't render all UTF-8 characters properly, no matter the body?

I'm sending the messages via EWS Managed API. I've tried setting other charsets in meta tag.

解决方案

Could you try the same payload using the follow script to send via SMTP?

https://github.com/tony-zhu/SendActionableMessage

We did some internationalization tests with this script and all characters were correctly displayed.

这篇关于可操作消息不显示区域(UTF-8)字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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