note 49000 added to function.mb-detect-encoding
| From: | jaaks at playtech dot com | Date: | Fri, 14 Jan 2005 08:27:07 +0000 |
| Subject: | note 49000 added to function.mb-detect-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83267@lists.php.net to get a copy of this message | ||
Last example for verifying UTF-8 has one little bug. If 10xxxxxx byte occurs alone i.e. not in
multibyte char, then it is accepted although it is against UTF-8 rules. Make following replacement
to repair it.
Replace
} // goto next char
with
} else {
return false; // 10xxxxxx occuring alone
} // goto next char
----
Manual Page -- http://www.php.net/manual/en/function.mb-detect-encoding.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49000
Delete -- http://master.php.net/manage/user-notes.php?action=delete+49000&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49000&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+49000&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+49000&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+49000&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+49000&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49000&report=yes
Search -- http://master.php.net/manage/user-notes.php