From: cstockton at godaddy dot com Operating system: Ubuntu Server PHP version: 5.2.5 PHP Bug Type: ICONV related Bug description: ICONV iconv_mime_encode Unknown error (7)
Description: ------------ Iconv fails to properly encode a TELUGU String, among several others. The example is TELGU, but I believe fixing TELGU will fix all other languages. The string is identical in all 3 cases, but I simply add a whitespace character on the last 2 examples, in which the third case fails. This bug is similar to Bug #43314, but maybe this one has a more helpfull test case, as Bug #43314 has not been answered. Reproduce code: --------------- $str = "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦"; // success echo var_dump($str), "\n", var_dump(iconv_mime_encode('from', $str, $preferences)), "\n"; $str = "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦ "; // success echo var_dump($str), "\n", var_dump(iconv_mime_encode('from', $str, $preferences)), "\n"; $str = "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦ "; // failure echo var_dump($str), "\n", var_dump(iconv_mime_encode('from', $str, $preferences)), "\n"; Expected result: ---------------- string(48) "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦" string(192) "from: =?UTF-8?Q?=E0=B0=BF=E0=B0=A2=E0=B1=A7=E0=B0=AC=E0=B0=9F?= =?UTF-8?Q?=E0=B0=9C=E0=B0=A5=E0=B0=AF=E0=B0=8F=E0=B0=AD=E0=B1=AF?= =?UTF-8?Q?=E0=B0=88=E0=B0=8C=E0=B0=81=E0=B0=9A=E0=B1=A6?=" string(49) "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦ " string(195) "from: =?UTF-8?Q?=E0=B0=BF=E0=B0=A2=E0=B1=A7=E0=B0=AC=E0=B0=9F?= =?UTF-8?Q?=E0=B0=9C=E0=B0=A5=E0=B0=AF=E0=B0=8F=E0=B0=AD=E0=B1=AF?= =?UTF-8?Q?=E0=B0=88=E0=B0=8C=E0=B0=81=E0=B0=9A=E0=B1=A6=20?=" string(50) "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦ " string(195) "from: =?UTF-8?Q?=E0=B0=BF=E0=B0=A2=E0=B1=A7=E0=B0=AC=E0=B0=9F?= =?UTF-8?Q?=E0=B0=9C=E0=B0=A5=E0=B0=AF=E0=B0=8F=E0=B0=AD=E0=B1=AF?= =?UTF-8?Q?=E0=B0=88=E0=B0=8C=E0=B0=81=E0=B0=9A=E0=B1=A6=20=20?=" Actual result: -------------- string(48) "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦" string(192) "from: =?UTF-8?Q?=E0=B0=BF=E0=B0=A2=E0=B1=A7=E0=B0=AC=E0=B0=9F?= =?UTF-8?Q?=E0=B0=9C=E0=B0=A5=E0=B0=AF=E0=B0=8F=E0=B0=AD=E0=B1=AF?= =?UTF-8?Q?=E0=B0=88=E0=B0=8C=E0=B0=81=E0=B0=9A=E0=B1=A6?=" string(49) "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦ " string(195) "from: =?UTF-8?Q?=E0=B0=BF=E0=B0=A2=E0=B1=A7=E0=B0=AC=E0=B0=9F?= =?UTF-8?Q?=E0=B0=9C=E0=B0=A5=E0=B0=AF=E0=B0=8F=E0=B0=AD=E0=B1=AF?= =?UTF-8?Q?=E0=B0=88=E0=B0=8C=E0=B0=81=E0=B0=9A=E0=B1=A6=20?=" string(50) "ిఢ౧బటజథయఏభ౯ఈఌఁచ౦ " Notice: iconv_mime_encode() [function.iconv-mime-encode]: Unknown error (7) in /media/storagegb/htdocs/rapidQA/modules/test02.php on line 81 bool(false) -- Edit bug report at http://bugs.php.net/?id=43799&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43799&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43799&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43799&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43799&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43799&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43799&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43799&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43799&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43799&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43799&r=support Expected behavior: http://bugs.php.net/fix.php?id=43799&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43799&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43799&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43799&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43799&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43799&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43799&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43799&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43799&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43799&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43799&r=mysqlcfg