Eleanor
Eleanor

Reputation: 357

How to convert ascii / 7bit email to utf8?

I read e-mails via php imap, and I can convert the header data to utf8.

But some email body is in ascii / 7bit, and I can't convert it.

No change by iconv($row['encode'],'utf-8' ,$row['text']); or mb_convert_encoding($row['text'], $row['encode'], "UTF-8"); and 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?

Upvotes: 2

Views: 1508

Answers (1)

MBaas
MBaas

Reputation: 7530

Have a look at quoted_printable_decode, that should help.

Upvotes: 3

Related Questions