[dev] Problem with mime parts' charsets

Michael M Slusarz slusarz at bigworm.colorado.edu
Fri Dec 6 01:43:34 2002


Quoting Jan Schneider <jan@horde.org>:

| MIME parts' charsets are currently either not correctly set or not
| correctly
| read.
| 
| [snip]
| 
| But back to the original problem. MIME_Part objects return their charsets
| in
| MIME_Part::getCharset() by looking up $this->_charset. If it is not set,
| the
| default charset is returned.
| But _charset only gets set in MIME_Structure::setInfo() if the the
| returned
| object from imap_fetch_structure has a charset member. I don't know if
| it's
| local to my imap server/c-client but in my case the mime part's charset
| is
| returned in the parameters array.

Try the fixes I just made to lib/MIME/Structure.php and lib/MIME/Part.php

michael

______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list