Home > Backend Development > PHP Tutorial > 求解:phpexcel向单元格中写入汉字的有关问题

求解:phpexcel向单元格中写入汉字的有关问题

WBOY
Release: 2016-06-13 11:43:28
Original
1016 people have browsed it

求解:phpexcel向单元格中写入汉字的问题
请问如何利用phpexcel向单元格中写入汉字呢,我用了下面的代码

$objPHPExcel->setActiveSheetIndex(0)->setCellValue('B2','你好');
Copy after login

但是B2单元格里面没有内容,如果将汉字换成英语字符的话可以写入,
请问如何解决,谢谢。

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