When retrieving emails via $storage = new Zend_Mail_Storage_Imap($params),
Zend_Mail_Message objects are rendered according to the sender's charset and
encoding settings which might call for converting email subjects and
contents to be properly displayed and / or stored.

There is a variety of both charset and encoding. Also, even though
Zend_Mail_Part contains headers such as "content-type" and
"content-transfer-encoding", Zend_Mail_Message does not, and it is not
obvious how to detect non-ASCII subjects (e.g. quoted-printable, or German
umlauts). Php native functions (e.g. quoted_printable_decode() and
base64_decode() for content decoding and imap_mime_header_decode() for
subject encoding) failed to serve as 100% solution.

Is there a Zend best practice on how to convert subjects / contents from "
any charset / encoding" to utf-8?
-- 
View this message in context: 
http://n4.nabble.com/Zend-Mail-Message-subject-and-content-best-practice-on-conversion-to-utf-8-tp788556p788556.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to