以他带的示例文件为例 01simple-download-xls.php
// Add some data
$objPHPExcel->setActiveSheetIndex(0)
->setCellValue('A1', iconv('gbk', 'utf-8', '中文Hello'))
->setCellValue('B2', 'world!')
->setCellValue('C1', 'Hello')
->setCellValue('D2', 'world!');
转载于:https://www.cnblogs.com/lonelyxmas/p/5703073.html