用PHPMailer发送unicode表情符号 [英] Send unicode emoji with PHPMailer

查看:235
本文介绍了用PHPMailer发送unicode表情符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过PHPMailer(5.2)发送unicode表情符号,但发送的电子邮件是以奇怪的字符而不是emojis收到的。
我正在发送HTML电子邮件,其中我只是 echo 一个包含一些utf-8表情符号的字符串,并检查电子邮件来源字符串似乎正确打印。例如:

  echo

I'm trying to send unicode emoji trough PHPMailer (5.2) but the emails I sent are received with weird characters instead of emojis. I'm currently sending HTML emails where I just echo a string containing some utf-8 emoji and inspecting the email source the string seems to be printed correctly. For example:

echo "
                        

这篇关于用PHPMailer发送unicode表情符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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