Mb_detect_encoding is always true

$title = òàè;
echo mb_detect_encoding($title,'UTF-8',true);

      

returns UTF-8

$title = òàè;
echo mb_detect_encoding($title,'ISO-8859-1',true);

      

returns ISO-8859-1

Why? It can't be both.

+3


source to share





All Articles