mb_detect_encoding always true

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

0 Answers
Related