在header() 前面加上ob_end_clean() 函数, 清除缓冲区, 这样就不会乱码了!
ob_end_clean();//清除缓冲区,避免乱码
header('Content-Type: application/vnd.ms-excel');
.....
.....
使用phpexcel导出excel乱码问题解决方法
猜你喜欢
转载自blog.csdn.net/weixin_39442420/article/details/81297583
今日推荐
周排行