无包少言送有缘:
//返回拼音 function ReturnPinyinFun($hz){ global $ecms_config; include_once(ECMS_PATH.'e/class/epinyin.php'); //编码 if($ecms_config['sets']['pagechar']!='gb2312') { //include_once(ECMS_PATH.'e/class/doiconv.php'); //$iconv=new Chinese(''); $char=$ecms_config['sets']['pagechar']=='big5'?'BIG5':'UTF8'; $targetchar='GB2312'; //$hz=$iconv->Convert($char,$targetchar,$hz); $hz=mb_convert_encoding($hz, $targetchar, $char); } return c($hz); }
|