mb_check_encoding($string, "UTF-8")
mb_detect_encoding($string, "CP51932, UTF-8") === "UTF-8"