[dev] Question marks and problems with gettext reencoding...
Jan Schneider
jan@horde.org
Mon, 19 Nov 2001 10:01:55 +0100
Zitat von Romans Malinovskis <romans@void.lv>:
>
>
> Just spent half a night trying to find out why gettext is printing
> out question marks instead of
> russian / latvian characters... The problem was because of probably
> broken glibc i18n support.
>
>
> in a shell, environment variable OUTPUT_CHARSET specify which charset
> terminal is capable of, but
> latest stable PHP does not have any way to chane this one on the fly
> (development snapshot does have
> this patch applied on 8 nov 2001)
>
> here is a patch for function bind_textdomain_codeset which allows to
> change output codeset.
>
> http://www.zend.com/lists/php-dev/200111/msg00402.html
>
>
> you can use
> bind_textdomain_codeset('imp',$nls['charsets'][$language]);
> to change output codeset for imp.
Did you also try if setting OUTPUT_CHARSET from within php [setenv()] does
work?
Jan.
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::