PHPExcel output is garbled

南笙酒味 提交于 2019-12-10 11:22:31

问题


Im trying the simple examples -01simple.xls- that come with PHPExcel im getting garbled output. It (LibreOffice) wants to import the file it thinks the char set is Western Europe DOS/OS2-861.icelandic and the output is like this

╨╧αí▒ß ■                                                                                                                                                                                                                                                                                                                                                                                                                                                   ╗ ╠╤B░=╝%r8X"1▄ÉCalibriα⌡  ╗ ╠╤*+éÇü┴âä&ffffffµ?'ffffffµ?(Φ?)Φ?í"dXX333333╙?333333╙?U}$ }$ }$ }$ ² ² ² ²

╢@gg      Root

Its probably something straightforward , but Ive no idea


回答1:


try reupload phpexcel with the transfer type in the ftp set to auto.




回答2:


Also make sure to remove all of the BOM's for the files. This script works great for it! http://code.google.com/p/bomremover/



来源:https://stackoverflow.com/questions/10814114/phpexcel-output-is-garbled

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!