学好php,坚持自己的路,我的网店:http://shop34276988.taobao.com(对直销不信任者没必要访问),想了解直销请访问www.wanmei100.cn

Notice: iconv() [function.iconv]: Detected an illegal ..问题

上一篇 / 下一篇  2008-04-16 11:04:40 / 个人分类:php问题集锦

iconv函数将gb2312转换为utf-8时,怎么有些汉字会出现问题,像"啰"字就会提示如下:
Notice: iconv() [function.iconv]: Detected an illegal character in input string

 

 

造成此错误的原因:

啰不是gb2312 字符集里的字,是gbk字符集里的字。


TAG: Detected an illegal character iconv php问题集锦

mayongzhan,myz,马永占 引用 删除 mayongzhan   /   2008-04-17 10:27:02
支持

iconv(gb2312,UTF-8//IGNORE,$要转的string);

这样就不会Notice: iconv() [function.iconv]:

blog.csdn.net/mayongzhan
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar