private function _getEncode($string) { return mb_detect_encoding($string, array('ASCII', 'GB2312', 'GBK', 'UTF-8')); }