Home >Backend Development >PHP Tutorial > phpexcel有关问题

phpexcel有关问题

WBOY
WBOYOriginal
2016-06-13 12:57:35888browse

phpexcel问题 啊
需要打开一个xls模板 然后添加数据
php页面用的是utf-8 setCellValue后打开xls乱码
把php页面改为gbk 然后>setCellValue(iconv(gbk,utf-8))竟然打开xls不乱码
总不能把整个项目改为gbk呀???
难道 页面设置utf-8跟iconv后的utf-8不一样 没有bom头
------解决方案--------------------
good
------解决方案--------------------
我今天也在写phpexcel代码,我们项目都是gbk的码,所以不蛋疼

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