note 51389 added to function.mb-detect-encoding
| From: | Chrigu at osu1 dot php dot net | Date: | Tue, 29 Mar 2005 15:32:23 +0000 |
| Subject: | note 51389 added to function.mb-detect-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87146@lists.php.net to get a copy of this message | ||
If you need to distinguish between UTF-8 and ISO-8859-1 encoding, list UTF-8 first in your
encoding_list:
mb_detect_encoding($string, 'UTF-8, ISO-8859-1');
if you list ISO-8859-1 first, mb_detect_encoding() will always return ISO-8859-1.
----
Manual Page -- http://www.php.net/manual/en/function.mb-detect-encoding.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51389
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51389&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51389&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51389&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51389&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51389&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51389&report=yes
Search -- http://master.php.net/manage/user-notes.php