[英]IMAP E-mail encoding issue
我正在嘗試使用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
應該是a .
標頭顯示字符集為Windows-1252
。
我已經嘗試過iconv
和mb_convert_encoding
但是都無法解決這個問題。 在webmail客戶端(roundcube)中查看電子郵件會按應有的方式顯示它,但是我似乎無法正確轉換它。
有什么建議么 ?
當我繼續搜索時,我在PHP.net / imap_fetchbody的注釋中找到quoted_printable_decode
,此問題已解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.