note 109687 deleted from function.mb-detect-encoding by danbrown

From: Date: Fri, 10 Aug 2012 16:06:12 +0000
Subject: note 109687 deleted from function.mb-detect-encoding by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189987@lists.php.net to get a copy of this message
Note Submitter: nmmm at nmmm dot nu ---- If you are using cassandra or some other system that requires 100% correct UTF8 input, you can use Gerg Tisza example for validating the UTF8 strings: if (mb_detect_encoding($str, 'UTF-8', true) ){ // UTF8 is correct // proceed }else{ echo "UTF8 NOT VALIDATE: $str \n"; // do something in case of error. }

« previous php.notes (#189987) next »