ArpitarRoy / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

Wrong encoding in dump function #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('windows-1251');
$data->read('test.xls');
echo $data->dump(true,true);

What is the expected output? What do you see instead?

1 тест
2 test

1 òåñò 
2 test 

Please provide any additional information below.

To fix this problem you need to replace line 635 

$val = htmlentities($val); 

  with

$val = htmlentities($val ,  ENT_COMPAT | ENT_HTML401,$this->_defaultEncoding); 

Original issue reported on code.google.com by s.kor...@gmail.com on 19 Oct 2012 at 12:06

Attachments: