Re: charset conversion experiences

From: Date: Thu, 13 Feb 2003 21:35:23 +0000
Subject: Re: charset conversion experiences
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-452@lists.php.net to get a copy of this message
Jan Schneider <jan@horde.org> wrote: > Moriyoshi Koizumi wrote: > > 1. libiconv is basically far better at transliteration than glibc iconv. > > > > 2. glibc iconv supports yet another external option. > > See http://bugs.php.net/20809 > > > > Hope this helps. > > Not really, but thanks for your answer. > > It still isn't clear to me which conversion method uses which library. > If I understand it correctly, mbstring doesn't use an external library > but has its own conversion routines. As for mbstring, that's virtually true. > iconv probably uses glibc's iconv? Depends on your configuration. On glibc available systems, --with-iconv (without any parameters) will lead the iconv extension to use glibc's iconv implementation. And if libiconv has been installed in the prefix "/usr/local" and PHP is configured with --with-iconv=/usr/local, libiconv will be used by the iconv extension. Please see the manual for detail as it has been updated since 4.3.0. > Does recode use the libiconv library? libiconv(libcharset) is bundled and used by recode internally. > If so, do you (or others) recommend the following chain to convert > between charsets? > recode - iconv - mbstring I don't so much recommend using recode because it's known to not work in a threaded environment. Moriyoshi

« previous php.i18n (#452) next »