我正在尝试使用包含俄语字符的PHPExcel读取excel文件。但我得到??????
代替字符串。任何帮助将不胜感激。
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('UTF-8');
$data->read('samplefile.xls');
for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++)
{
for ($j = 1; $j <= $data->sheets[0]['numCols']; $j++)
{
echo "\"".utf8_decode($data->sheets[0]['cells'][$i][$j])."\",";
}
echo "\n";
}