note 55227 deleted from function.mb-detect-encoding by betz

From: Date: Thu, 28 Jul 2005 10:04:52 +0000
Subject: note 55227 deleted from function.mb-detect-encoding by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92621@lists.php.net to get a copy of this message
Note Submitter: telemach ---- 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

« previous php.notes (#92621) next »