ID:               44096
 Comment by:       aboh24 at gmx dot de
 Reported By:      cpuidle at gmx dot de
 Status:           No Feedback
 Bug Type:         ICONV related
 Operating System: WinXP
 PHP Version:      5.2.5
 New Comment:

Same problem on Solaris 10 and explicit compiled and  linked
libiconv-1.12 and php 5.2.8. with --with-iconv-dir=<path to
libiconv-1.12 lib>

PHP Notice:  iconv(): Wrong charset, conversion from `UTF-8' to
`ASCII//TRANSLIT' is not allowed in /sisis/home/sisis/suchopac/query.php
on line 39
PHP Notice:  iconv(): Wrong charset, conversion from `ASCII' to
`UTF-8//TRANSLIT' is not allowed in /sisis/home/sisis/suchopac/query.php
on line 40
PHP Notice:  iconv(): Wrong charset, conversion from `UTF-8' to
`ISO-8859-1//TRANSLIT' is not allowed in
/sisis/home/sisis/suchopac/query.php on line 42
PHP Notice:  iconv(): Wrong charset, conversion from `ISO-8859-1' to
`UTF-8//TRANSLIT' is not allowed in /sisis/home/sisis/suchopac/query.php
on line 43


Previous Comments:
------------------------------------------------------------------------

[2009-02-12 06:40:47] niloat at gmail dot com

Please check whether necessary so files exists in /usr/lib/gconv.
You can copy those files from other's linux system if missing someone.

------------------------------------------------------------------------

[2008-05-13 05:11:40] iconv dot 20 dot cheef-daniel at spamgourmet dot
com

Notice: iconv() [function.iconv]: Wrong charset, conversion from
`ISO-8859-1' to `UTF-8//TRANSLIT' is not allowed in /var/www/test.php on
line 7

Same here with libapache2-mod-php5.2.6 on my debian etch based system.
I first thought it has to do with my chroot-setup and spent 2 days
searching what goes wrong and found nothing. It works fine with an old
php4-binary, iconv directly called in the shell works too.

samples from ANSI encoded file:
echo iconv('UTF-8', 'ASCII//TRANSLIT', "test"); // works
echo iconv('ASCII', 'UTF-8//TRANSLIT', "test"); // works

echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', "test"); // works not
echo iconv('ISO-8859-1', 'UTF-8//TRANSLIT', "test"); // works not

------------------------------------------------------------------------

[2008-04-17 08:41:49] i dot pavlov at korekom dot net

The same thing here. But the problem is far from Windows-specific.
Debian based system in my case.
No usefull info found for now.

------------------------------------------------------------------------

[2008-02-25 01:31:35] ras...@php.net

Weird Windows-specific thing.  The test case works fine on 6 different
UNIX variants I just tried it on.

------------------------------------------------------------------------

[2008-02-24 23:45:29] darop68 at poczta dot onet dot pl

I have the same problem in php 5.2.5.
My code:
iconv('iso-8859-2', 'utf-8', 'test');

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/44096

-- 
Edit this bug report at http://bugs.php.net/?id=44096&edit=1

Reply via email to