[dev] Problem with 8 bits caracters in IMP message preview

Jan Schneider jan at horde.org
Sun Nov 16 04:42:54 PST 2003


The preview function is a really simple method to get the first lines from a
message and show it as-is. We don't do any message processing beside
stripping html tags, so this is the expected behaviour and I don't have any
intentions at the moment to change it.

Zitat von Etienne Goyer <etienne.goyer at linuxquebec.com>:

> Unfortunately not ... we decide to take out the preview option instead.
> So far, I think this is related to the fact that the messages are in one
> characters set (say, ISO-8859-1) but the page is being displayed in
> another (UTF-8).  I guess the preview would have to be converted from
> the messages charset to NLS::getCharset() with String::convertCharset().
> I have not been able to find the time required to cook up a patch,
> unfortunately.
>
>
> On Thu, Nov 13, 2003 at 11:51:40AM +0100, Mikael Geijer wrote:
> > Hi!
> > Did you find any solution to this?
> > Having the same problem...
> >
> > /Mikael
> >
> > Etienne Goyer wrote:
> >
> > >Hi,
> > >
> > >Using a CVS snapshot of Nov. 3rd, 8 bits caracters appear as '?' in
> > >message preview with mailbox.php.  8 bit caracters appear correctly in
> > >the message's subject, though.
> > >
> > >Is this a known problem ?  From what I can gather by looking at
> > >mailbox.php, the message body seem to be displayed as-is from what
> > >imap_fetchbody() return.  This message is stored in ISO-8859-1 and
> Horde
> > >return page in UTF-8.  Should some conversion be done and, if so, how
> ?
> > >
> > >Thanks for your input !

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