[imp] Re: Re: Re: CVS Imp and Russian in body of message - SOLUTION

Dan Tulovsky dant at wetsnow.com
Tue Feb 4 13:28:17 PST 2003


My problem was resolved when I installed the iconv library.

Dan


"Dan Tulovsky" <dant at wetsnow.com> wrote in message
news:b1n3h1$n04$1 at main.gmane.org...
> I do have UTF-8 enabled.  It was all thise time.  I disabled it just to
see
> what would happen.
>
> With UTF-8 enabled, I can see Japanese text inline just fine.  Russian
text
> is garbled.  In fact, it's not so much garbled, as it doesn't seem to
exist.
> This is what I see:
>
> ------------------------------------
>             !
>
>                .        .
>                    .
>               .          .
>
>                 11 .   ,   315,
>             18:00
>
>                 ?    ?
>
>              .
>
>              .
>
>             .
>
>
>
>
>
> ------------------------------------
>
> The russian characters are simply not there.
>
> Dan
>
> "Jan Schneider" <jan at horde.org> wrote in message
> news:1044320502.915e83525f699 at jan.dip.ammma.net...
> > Zitat von Dan Tulovsky <dant at wetsnow.com>:
> >
> > > So, I did have UTF-8 enabled.  Disabling this, results in a message
> being
> > > displayed above the garbled russian text:
> > >
> > > This message was written in a character set other than your own. If it
> is
> > > not displayed correctly, try opening it in a new window.
> >
> > So why don't you enable UTF-8 support?
> >
> > > Opening it in a new window still leaves the text garbled.
> >
> > Works fine here with different charsets as long as they are supported by
> the
> > browser.
> >
> > > > > My interface is in English (I can switch the interface itself to
> > > Russian
> > > > > and
> > > > > everything displays fine in the interface - the message does not)/
> > > >
> > > > Of course. How should this work with two different charsets?
> > >
> > >
> > > Well, it works for Japanese emails when my interface is in English.
Why
> >
> > In the popup or inline in the message view? In the latter case you
already
> > enabled UTF-8 support for Horde.
> >
> > > > > Where should I enable UTF-8 support?  The locale on my system are:
> > > >
> > > > In config/nls.php. If you enable it and have multibyte extensions
> > > compiled
> > > > into PHP, both the interface and the message get converted to UTF-8
> and
> > > can
> > > > be displayed at the same time.
> > >
> > > Also, Russian is not multibyte, so I don't think this would apply.
> >
> > This has nothing to to with the extensions. We use them to convert
between
> > different charsets.
> >
> > > I think the problem is coming from the fact that IMP isn't picking up
> the
> > > correct charset.  The Japanese message has headers:
> > >
> > >       Content-Transfer-Encoding:  7bit
> > >       Content-Type:  text/plain; charset="iso-2022-jp"
> > >
> > >
> > > Also, just like the russian page, the source shows:
> > >
> > > <html lang="en-US"> at the top of the page, but that doesn't seem to
> > > break
> > > anything.
> >
> > This has again nothing to do with the problem. The lang attribute only
> > specifies the language and is completely unrelated to charsets.
> >
> > > in nls.php, my defaults are:
> > >
> > > /* The langauge to fall back on if we cannot determine one any other
> > >    way (user choice, preferences, HTTP_ACCEPT_LANGUAGE). */
> > > $nls['defaults']['language'] = 'en_US';
> > >
> > > /* The charset to fall back on if we cannot determine one any other
> > >    way (chosen language, HTTP_ACCEPT_CHARSETS). */
> > > $nls['defaults']['charset'] = 'ISO-8859-1';
> >
> > Again: If UTF-8 works and you even have the mbstring extension available
> (as
> > you said in an earlier post), why don't you just use it?
> >
> > Jan.
> >
> > --
> > http://www.horde.org - The Horde Project
> > http://www.ammma.de - discover your knowledge
> > http://www.tip4all.de - Deine private Tippgemeinschaft
> >
> > --
> > IMP mailing list
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe at lists.horde.org
> >
>
>
>
>
> -- 
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>





More information about the imp mailing list