ID: 44096
Updated by: [EMAIL PROTECTED]
Reported By: cpuidle at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: ICONV related
Operating System: WinXP
PHP Version: 5.2.5
New Comment:
In what charset is the input here..?
Previous Comments:
------------------------------------------------------------------------
[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