message:"iconv(): Detected an illegal character in input string"

 

这个错误怎么搞?废话不多说

message:"iconv(): Detected an illegal character in input string"

旧代码:

$row[$key] = iconv('utf-8', 'gbk', $value);

 

新代码:

$row[$key] = iconv('utf-8', 'gbk//ignore', $value);

//或者

$row[$key] = mb_convert_encoding($value,'utf-8', 'gbk');

 

 

文章来源:刘俊涛的博客欢迎关注公众号、留言、评论,一起学习。

__________________________________________________________________________________

若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)

posted @ 2022-01-07 19:21  刘俊涛的博客  阅读(119)  评论(0编辑  收藏  举报