php教程Excel类从mysql教程中将数据导出到xls乱码
$objPHPExcel->setActiveSheetIndex(0)
->setCellValue('A1', iconv('gbk', 'utf-8', '中文Hello'))
->setCellValue('B2', 'world!')
->setCellValue('C1', 'Hello')
->setCellValue('D2', 'world!');
//用php 用自带转码函数iconv转换一下就OK了。
http://www.bkjia.com/PHPjc/630865.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/630865.htmlTechArticlephp教程Excel类从mysql教程中将数据导出到xls乱码 $objPHPExcel-setActiveSheetIndex(0) -setCellValue('A1', iconv('gbk', 'utf-8', '中文Hello')) -setCellValue('B2', 'wor...