[dev] Problem with mime parts' charsets

Jan Schneider jan at horde.org
Fri Dec 6 12:39:57 2002


Zitat von Michael M Slusarz <slusarz@bigworm.colorado.edu>:

> 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

Yes, works fine now, thanks!

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list