IMAP电子邮件编码问题

时间:2013-10-18 07:14:37

标签: php character-encoding imap

我正在尝试使用IMAP解析电子邮件,我收到了imap_fetchbody($conn, $i, 1)的邮件,它给了我:

string(566) "
The email message addressed to "hidden=2Esomething@site=2E=
net" with the subject "subject" has been successfully delivered to =
the destination at 12-Oct-2013 11:01 UTC=2E=20

This is an automated response=2E Please do not reply to this message=2E   Thank you=2E"

现在在上面的例子中,=2E应该是.标题说charset是Windows-1252

我已经尝试了iconvmb_convert_encoding,但都未能解决此问题。 在webmail客户端(圆形立方体)中查看电子邮件会显示它应该如此,但我似乎无法正确转换它。

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

当我继续搜索时,我在PHP.net / imap_fetchbody的评论中找到quoted_printable_decode来解决问题。

相关问题