Authored by 周少峰

pinyin error

@@ -1825,9 +1825,6 @@ class HelperSearch @@ -1825,9 +1825,6 @@ class HelperSearch
1825 */ 1825 */
1826 public static function pinYin($zh){ 1826 public static function pinYin($zh){
1827 $ret = ""; 1827 $ret = "";
1828 - if(mb_detect_encoding($zh, array('GB2312','GBK','UTF-8'))!='UTF-8'){  
1829 - $zh = '';  
1830 - }  
1831 @$s1 = iconv("UTF-8","gbk//ignore", $zh); 1828 @$s1 = iconv("UTF-8","gbk//ignore", $zh);
1832 @$s2 = iconv("gbk//ignore","UTF-8", $s1); 1829 @$s2 = iconv("gbk//ignore","UTF-8", $s1);
1833 if($s2 == $zh){$zh = $s1;} 1830 if($s2 == $zh){$zh = $s1;}