PHP iconv and mb_convert_encoding

iconv("GBK","UTF-8",$str) equal to mb_convert_encoding($str,"UTF-8","GBK") OR mb_convert_encoding($str,"UTF-8","auto").

iconv have a bug which can not convet "-",but mb_convert_encoding not.

相关推荐