Jan Schneider <[EMAIL PROTECTED]> 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


-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to