note 110543 added to function.mb-detect-encoding

From: Date: Sun, 04 Nov 2012 22:32:25 +0000
Subject: note 110543 added to function.mb-detect-encoding
Groups: php.notes 
Request: Send a blank email to php-notes+get-191653@lists.php.net to get a copy of this message
Users, please note that @Mahn is also wrong... "The detected character encoding or FALSE if the encoding cannot be detected from the given string." @ikatalog at web dot de's first function is correct, his 2nd one is not, it should be checking for '!== false', which is faster then a string comparison of 'UTF-8' as @Mahn suggested. ---- Server IP: 69.147.83.199 Probable Submitter: 122.149.209.199 ---- Manual Page -- http://www.php.net/manual/en/function.mb-detect-encoding.php Edit -- https://master.php.net/note/edit/110543 Del: integrated -- https://master.php.net/note/delete/110543/integrated Del: useless -- https://master.php.net/note/delete/110543/useless Del: bad code -- https://master.php.net/note/delete/110543/bad+code Del: spam -- https://master.php.net/note/delete/110543/spam Del: non-english -- https://master.php.net/note/delete/110543/non-english Del: in docs -- https://master.php.net/note/delete/110543/in+docs Del: other reasons-- https://master.php.net/note/delete/110543 Reject -- https://master.php.net/note/reject/110543 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191653) next »