$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.
$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.