我使用PHPExcel_1.7.9
并尝试加载utf-8文件名$filename = "phố.xlsx";
来阅读它。像
$filename = "phố.xlsx";
require_once 'Classes/PHPExcel/IOFactory.php';
$objPHPExcel = PHPExcel_IOFactory::load($filename);
我得到的错误就像
Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open phố.xlsx for reading! File does not exist.' in ...\PHPExcel_1.7.9_doc\Classes\PHPExcel\Reader\Excel2007.php:82 Stack trace:
#0 ...\PHPExcel_1.7.9_doc\Classes\PHPExcel\IOFactory.php(268): PHPExcel_Reader_Excel2007->canRead('ph???.xlsx')
#1 ...\PHPExcel_1.7.9_doc\Classes\PHPExcel\IOFactory.php(191): PHPExcel_IOFactory::createReaderForFile('ph???.xlsx')
#2 ...\PHPExcel_1.7.9_doc\read.php(16): PHPExcel_IOFactory::load('ph???.xlsx') #3 {main} thrown in ...\PHPExcel_1.7.9_doc\Classes\PHPExcel\Reader\Excel2007.php on line 82
我如何加载文件的名称是utf-8谢谢