简体   繁体   English

怎么把ascii / 7bit电子邮件转换成utf8?

[英]How to convert ascii / 7bit email to utf8?

I read e-mails via php imap, and I can convert the header data to utf8. 我通过php imap阅读电子邮件,并且可以将标头数据转换为utf8。

But some email body is in ascii / 7bit, and I can't convert it. 但是某些电子邮件正文为ascii / 7bit,因此我无法进行转换。

No change by iconv($row['encode'],'utf-8' ,$row['text']); iconv($row['encode'],'utf-8' ,$row['text']);不变iconv($row['encode'],'utf-8' ,$row['text']); or mb_convert_encoding($row['text'], $row['encode'], "UTF-8"); mb_convert_encoding($row['text'], $row['encode'], "UTF-8"); and imap_utf8($row['text']); imap_utf8($row['text']); fails. 失败。

Do you have any idea to get off the 3D=3D=3D=3D=3D=3D=3D=3D and others from the mail body? 您是否有想法从邮件正文中3D=3D=3D=3D=3D=3D=3D=3D和其他内容?

看一下quoted_printable_decode ,这应该有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM