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

From: Date: Fri, 13 Nov 2009 22:40:16 +0000
Subject: #49406 [Opn->Bgs]: utf8_decode(): Include "caution" note that it destroys 99.9% of all characters
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3152@lists.php.net to get a copy of this message
ID: 49406 Updated by: vrana@php.net Reported By: thomas at landauer dot at -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: * PHP Version: Irrelevant New Comment: It's clearly stated that the function converts a string with ISO-8859-1 characters encoded with UTF-8. Previous Comments: ------------------------------------------------------------------------ [2009-08-30 19:33:03] jani@php.net There is no such OS called "All". ------------------------------------------------------------------------ [2009-08-29 15:22:31] thomas at landauer dot at 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 this bug report at http://bugs.php.net/?id=49406&edit=1

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