ID: 44096
Comment by: darop68 at poczta dot onet dot pl
Reported By: cpuidle at gmx dot de
Status: No Feedback
Bug Type: ICONV related
Operating System: WinXP
PHP Version: 5.2.5
New Comment:
I have the same problem in php 5.2.5.
My code:
iconv('iso-8859-2', 'utf-8', 'test');
Previous Comments:
------------------------------------------------------------------------
[2008-02-22 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-02-14 22:45:38] [EMAIL PROTECTED]
Another reason for this is that those encodings just don't exist on
your platform. The code works fine for me on Linux..
------------------------------------------------------------------------
[2008-02-13 19:01:42] cpuidle at gmx dot de
See test case- file is ansi, not even any complex characters?
------------------------------------------------------------------------
[2008-02-13 17:52:17] [EMAIL PROTECTED]
In what charset is the input here..?
------------------------------------------------------------------------
[2008-02-11 08:40:15] cpuidle at gmx dot de
Description:
------------
Trying simple charset conversion with iconv:
iconv('iso-8859-1', 'utf-8', 'test');
receive this error:
Notice: iconv() [function.iconv]: Wrong charset, conversion from
`ISO8859-1' to `UTF-8' is not allowed in /var/htdocs/test.php on line 5
Problem: no troubleshooting information available, e.g. list or
supported charsets or similiar.
How can this be diagnosed?
Reproduce code:
---------------
error_reporting(E_ALL);
$res = iconv('iso-8859-1', 'utf-8', 'test');
Expected result:
----------------
No error and/or supporting functions to aid diagnostics.
Actual result:
--------------
Error message:
Notice: iconv() [function.iconv]: Wrong charset, conversion from
`ISO8859-1' to `UTF-8' is not allowed in /var/htdocs/test.php on line 5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44096&edit=1