Chinaunix

标题: PHP iconv and mb_convert_encoding [打印本页]

作者: 中关村村草    时间: 2012-03-11 18:40
标题: PHP iconv and mb_convert_encoding
PHP iconv and mb_convert_encoding







phpiconvmb_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.


作者: 如果有一天21    时间: 2012-03-11 21:07
谢谢分享




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2