note 55227 added to function.mb-detect-encoding
| From: | telemach at osu1 dot php dot net | Date: | Thu, 28 Jul 2005 01:48:29 +0000 |
| Subject: | note 55227 added to function.mb-detect-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92604@lists.php.net to get a copy of this message | ||
beware : even if you need to distinguish between UTF-8 and ISO-8859-1, and you the following
detection order (as chrigu suggests)
mb_detect_encoding('accentuée' , 'UTF-8, ISO-8859-1')
returns ISO-8859-1, while
mb_detect_encoding('accentué' , 'UTF-8, ISO-8859-1')
returns UTF-8
bottom line : an ending 'é' (and probably other accentuated chars) mislead
mb_detect_encoding
----
Manual Page -- http://www.php.net/manual/en/function.mb-detect-encoding.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55227
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55227&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55227&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55227&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55227&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55227&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55227&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55227&report=yes
Search -- http://master.php.net/manage/user-notes.php