Outlook不显示UTF-8编码文本(یبساØ|Ù¹Ù)通过邮件发送邮件 [英] Outlook not showing UTF-8 Encoded Text (یب سائٹ Ù) email by php mail
本文介绍了Outlook不显示UTF-8编码文本(یبساØ|Ù¹Ù)通过邮件发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用mail()从我的网站发送UTF-8电子邮件。 Gmail显示它非常好,但展望如此یبساØ|Ù¹Ù
When i am sending UTF-8 email using mail() from my site . Gmail showing it very nice but outlook showing it like this یب سائٹ Ù
我的代码是
my code is
$to = "xxx@gmail.com";
$subject ="Subject";
$headers = "From: xxxx \r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset:UTF-8 \r\n";
$message = "email message";
推荐答案
您可能需要为您的主题添加编码
You might want to add encoding to your subject
$subject='==?UTF-8?Q?Subject?='
和/或内容转移头
$headers.='Content-Transfer-Encoding: quoted-printable'
取决于消息部分编码问题显示。
depending on the message part the encoding problem shows.
这篇关于Outlook不显示UTF-8编码文本(یبساØ|Ù¹Ù)通过邮件发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文