Free Beautiful Css templates, Web designer tricks from expert
/* *QQ: 290359552 * conver to Utf8 if $str is not equals to 'UTF-8' */ function convToUtf8($str) { if( mb_detect_encoding($str,"UTF-8, ISO-8859-1, GBK")!="UTF-8" ) { return iconv("gbk","utf-8",$str); } else { return $str; } }
No comments:
Post a Comment