note 104907 added to function.utf8-decode

From: Date: Fri, 15 Jul 2011 02:01:11 +0000
Subject: note 104907 added to function.utf8-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-181543@lists.php.net to get a copy of this message
Please note that utf8_decode simply converts a string encoded in UTF-8 to ISO-8859-1. A more appropriate name for it would be utf8_to_iso88591. If your text is already encoded in ISO-8859-1, you do not need this function. If you don't want to use ISO-8859-1, you do not need this function. Note that UTF-8 can represent many more characters than ISO-8859-1. Trying to convert a UTF-8 string that contains characters that can't be represented in ISO-8859-1 to ISO-8859-1 will garble your text and/or cause characters to go missing. Trying to convert text that is not encoded in UTF-8 using this function will most likely garble the text. If you need to convert any text from any encoding to any other encoding, look at iconv() instead. ---- Server IP: 69.147.83.197 Probable Submitter: 180.12.72.62 ---- Manual Page -- http://www.php.net/manual/en/function.utf8-decode.php Edit -- https://master.php.net/note/edit/104907 Del: integrated -- https://master.php.net/note/delete/104907/integrated Del: useless -- https://master.php.net/note/delete/104907/useless Del: bad code -- https://master.php.net/note/delete/104907/bad+code Del: spam -- https://master.php.net/note/delete/104907/spam Del: non-english -- https://master.php.net/note/delete/104907/non-english Del: in docs -- https://master.php.net/note/delete/104907/in+docs Del: other reasons-- https://master.php.net/note/delete/104907 Reject -- https://master.php.net/note/reject/104907 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181543) next »