#49406 [NEW]: utf8_decode(): Include "caution" note that it destroys 99.9% of all characters

From: Date: Sat, 29 Aug 2009 15:22:31 +0000
Subject: #49406 [NEW]: utf8_decode(): Include "caution" note that it destroys 99.9% of all characters
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2686@lists.php.net to get a copy of this message
From: thomas at landauer dot at Operating system: All PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: utf8_decode(): Include "caution" note that it destroys 99.9% of all characters Description: ------------ From the 1,114,112 (possible) Unicode-characters, only 256 are converted correctly. The remaining 99.9 percent are destroyed (i.e. "converted" into a question mark), since they don't exist in ISO 8859-1. My suggestion: Explicitly state this fact in a red "caution" box in the funciton's documentation. This would also prevent "bugs" like this one here from being reported: See http://bugs.php.net/bug.php?id=36138&edit=2 -- Edit bug report at http://bugs.php.net/?id=49406&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49406&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49406&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49406&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49406&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49406&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49406&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49406&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49406&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49406&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49406&r=support Expected behavior: http://bugs.php.net/fix.php?id=49406&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49406&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49406&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49406&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49406&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49406&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49406&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49406&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49406&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49406&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49406&r=mysqlcfg

« previous php.doc.bugs (#2686) next »