phpexcel导出excel文件下载保存后,发现文件头多了0D 0A,内容变成乱码了解决办法

WBOY
Release: 2016-06-13 13:32:41
Original
1164 people have browsed it

phpexcel导出excel文件下载保存后,发现文件头多了0D 0A,内容变成乱码了
请问各位是否遇到过这种情况,如何解决,谢谢!

------解决方案--------------------
是不是编码没设置好?
------解决方案--------------------
0d 0a 回车换行
你的程序所涉及到的文件中,有一个文件在 php 标记外有空行

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!