ithover 2012-03-07
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.
1. 首先,我得知道这个文件具体采用的是什么样的编码,如果是ISO-8859我将会把它转成UTF-8,其他的ASCII这些都先不做处理,这里可以使用file filename或者是enca iconv