Re: Re: ICONV test
| From: | Derick Rethans | Date: | Wed, 09 Oct 2002 13:12:57 +0000 |
| Subject: | Re: Re: ICONV test | ||
| References: | 1 2 3 4 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-6029@lists.php.net to get a copy of this message | ||
On Wed, 9 Oct 2002, Rui Hirokawa wrote:
> I got same result with you.
> I am using glibc 2.2.4 on Linux 7.0.
>
> transliteration is not correctly supported in iconv of glibc 2.2.x.
>
> If you are using glibc 2.2.x,
> iconv('CP932', 'EUC-JP//TRANSLIT', "\x87\x6d") in translit.phpt
> causes a notice 'PHP Notice: iconv(): Detected illegal character in input string'.
> This code is to detect if iconv() supports transliteration,
> so the notice can be suppressed using @ operator.
> <?php include( 'skipif.inc' ); if( @iconv('CP932',
> 'EUC-JP//TRANSLIT', "\x87\x6d") == '' ) die("skip\n"); ?>
Ah, great. Only 4 failed test left :)
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-