html 电子邮件问题
我正在向我的会员发送电子邮件,但是 Gmail 中的电子邮件显示错误,请查看以下内容:
原始邮件
立即登录您的帐户 » 有人刚刚向您发送了 Smile 笔友游行。要阅读它,请登录您的帐户,然后单击 关于“消息”。不要忘记在 Facebook 上给我们点赞!
Gmail(可能还有其他)
立即登录您的帐户 » 有人刚刚向您发送了 Smile 笔友游行。要阅读它,请登录您的帐户,然后单击 关于“消息”。不要忘记在 Facebook 上给我们点赞!
知道如何解决这个问题吗?
I am sending emails to my members however the email is coming out wrong in Gmail, have a look below:
Originial
log into your account now » Someone has just sent you a Smile on
Penpal Parade. To read it please log into your account and then click
on "messages". Don't forget to like us on Facebook!
Gmail (and probably others)
log into your account now » Someone has just sent you a Smile on
Penpal Parade. To read it please log into your account and then click
on “messages†. Don’t forget to like us on Facebook!
Any idea on how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,始终使用 UTF-8 字符编码。这看起来像典型的“从单词粘贴”错误编码。
Yes, use UTF-8 character encoding always. This looks like the typical "paste from word" miscoding.
你的字符集不匹配。当您有 UTF-8 源但有其他输出(如 ISO-8859)时,
Â
就会显示。...您不是说“gmail 中出现错误”吗?
You've got a character set mismatch. The
Â
shows up when you've got UTF-8 source but some other output, like ISO-8859.... and don't you mean "is coming out WRONG in gmail"?
最好替换特殊的 HTML 字符。
常见的有:
™ = ™
& = &
” = "
© = ©
» = »
« = «
£ = £
较大参考:http://www.w3schools.com/tags/ref_entities.asp
如前所述,这通常发生在从 Word 复制和粘贴时,我通常从 Word 复制到 Windows Note Pad,然后我进行手动实体替换。
您还可以使用在线工具:
Google“html编码工具”。
It's always best to replace special HTML characters.
Common ones are:
™ = ™
& = &
" = "
© = ©
» = »
« = «
£ = £
Larger reference: http://www.w3schools.com/tags/ref_entities.asp
As said earlier this usually happens when copying and pasting from Word, I usually copy from word to Windows Note Pad and then I do a manual entity replace.
There is also on-line tools you can use:
Google "html encoding tool"