tedious / Fetch

An IMAP library for PHP
http://www.tedivm.com
Other
503 stars 158 forks source link

Quoted-Printable encoding #154

Closed ghost closed 9 years ago

ghost commented 9 years ago

How can I echo an Subject with Quoted-Printable encoding in utf-8?

ghost commented 9 years ago

Found it. Code to help others: $sub= (is_null($message->getSubject())) ? 'No Subject' : $message->getSubject(); mb_internal_encoding('UTF-8'); $subject= strreplace(""," ", mb_decode_mimeheader($sub));