[horde] Re: Maybe a bug, need some help
Damien Harper
damien.harper at keops.net
Thu Dec 18 06:42:32 PST 2003
Hi all,
I may have found the reason of my troubles...
Maybe PHP bug #20934
Regards,
Damien Harper
"Damien Harper" <damien.harper at keops.net> a écrit dans le message de
news:brp2f0$239$1 at sea.gmane.org...
> Hi all,
> I solved the problem I encountered (cf thread "French language doesn't
work
> for me) !
> In fact, I just found a workaround, not a real solution.
> I think something's wrong with horde charset encoding scheme or with my
> setup.
> I installed a fresh horde setup and a fresh horde database and got the
same
> troubles as before.
> So I took a little time to have a look at horde "nls" php code.
> I found that NLS::getCharset() always returns "UTF-8" on my system even if
I
> explicitly set it to iso-8859-1 ! I don't know why that happens but that's
> reality :-(
>
> I just changed the function (in lib/NLS.php)
> function getCharset($no_utf = false)
> to
> function getCharset($no_utf = true)
>
> If I understood well the meaning of that parameter, Horde tries to use
UTF-8
> first (by testing if the browser supports UTF-8 => lib/Browser.php) and if
> it can't, it tries to identify encoding by identifying language first.
> My system is set to french, iso-8859-1 and my browser (IE6 SP1) supports
> UTF-8. The server Apache2 is set to use iso-8859-1 encoding and Mysql too.
> Now it works...
> Thanks
>
> Regards,
>
> Damien Harper
>
>
>
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
More information about the horde
mailing list