note 104906 added to function.utf8-encode
| From: | deceze at gmail dot com | Date: | Fri, 15 Jul 2011 01:51:42 +0000 |
| Subject: | note 104906 added to function.utf8-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181540@lists.php.net to get a copy of this message | ||
Please note that utf8_encode only converts a string encoded in ISO-8859-1 to UTF-8. A more
appropriate name for it would be "iso88591_to_utf8". If your text is not encoded in
ISO-8859-1, you do not need this function. If your text is already in UTF-8, you do not need this
function. In fact, applying this function to text that is not encoded in ISO-8859-1 will most likely
simply garble that text.
If you need to convert 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-encode.php
Edit -- https://master.php.net/note/edit/104906
Del: integrated -- https://master.php.net/note/delete/104906/integrated
Del: useless -- https://master.php.net/note/delete/104906/useless
Del: bad code -- https://master.php.net/note/delete/104906/bad+code
Del: spam -- https://master.php.net/note/delete/104906/spam
Del: non-english -- https://master.php.net/note/delete/104906/non-english
Del: in docs -- https://master.php.net/note/delete/104906/in+docs
Del: other reasons-- https://master.php.net/note/delete/104906
Reject -- https://master.php.net/note/reject/104906
Search -- https://master.php.net/manage/user-notes.php