标签: php encoding
$title = òàè; echo mb_detect_encoding($title,'UTF-8',true);
返回UTF-8
$title = òàè; echo mb_detect_encoding($title,'ISO-8859-1',true);
返回ISO-8859-1
为什么呢?它不可能都是。