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

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

WBOY
WBOYOriginal
2016-06-13 13:32:411165browse

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

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

Statement:
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