Home > Backend Development > PHP Tutorial > PHPEXcel 10008 error resolution

PHPEXcel 10008 error resolution

WBOY
Release: 2016-08-08 09:21:05
Original
1706 people have browsed it

Today when I was working on the company’s CRM system, a 10008 error occurred when uploading the Excel table saved under MAC office 2011.

Refer to http://blog.csdn.net/zzz_781111/article/details/17422313 to solve the problem.

------------------------------------------------ -------------------------------------------------- ----------------------------------

Original text attached:

The following errors may occur:
1 2 3 Unknown codepage: 10008 PHPExcel_Shared_CodePage::NumberToName(%d) PHPExcel/Shared/CodePage.php 98 break()
The reason is that there is no corresponding situation handling for 10008 in the NumberToName() method, so the "Unknown codepage: 10008" exception will be thrown. Solution:Add 10008 to the NumberToName() method. Corresponding processing:
1 case 10008: return 'MAC';

The above introduces the PHPEXcel 10008 error resolution, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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