PHPExcel数据导出报错:
iconv(): Detected an illegal character in input string
$string = "这是一段话"; $string = substr($string, 1); echo $string; //打印:��是一段话
mb_substr()
函数即可$string = "这是一段话"; $string = mb_substr($string, 1); echo $string; //打印:是一段话
数据库配置
PHP项目配置
PHP代码字符截取导致乱码