Question marks and problems with gettext reencoding...
Romans Malinovskis
romans@void.lv
Mon, 19 Nov 2001 05:34:02 +0200
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.
romans