Home » File Formats » Spreadsheet_Excel_Writer » Bug #9833
Chinese data are getting lost
Details
| Submitted | 2007-01-15 07:56 UTC |
|---|---|
| From | yinhua_lu at allyes dot com |
| Assigned | alan_k |
| Status | Closed |
| Package | Spreadsheet_Excel_Writer |
| PHP Version | 4.3.1 |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2007-01-15 07:56 UTC] yinhua_lu at allyes dot com
Description:
------------
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('luyinhua.xls');
$workbook->setCustomColor("alsd",252,277,254);
$workbook->setVersion(8);
$worksheet =& $workbook->addWorksheet('International worksheet');
$worksheet->setInputEncoding('GB2312');
for ($j=0;$j<3000;$j++)
{
$worksheet->write($j, 0,"a");
$worksheet->write($j, 1,$j."我是哦啊da");
}
$workbook->close();
Test script:
---------------
data lost
Expected result:
----------------
a run good xls !
Actual result:
--------------
say wrong ,and the data lost!
[2007-01-29 03:52 UTC] yinhua_lu at allyes dot com
PEAR 1.4.11 stable
Spreadsheet_Excel_Writer 0.9.1 beta
[2007-01-29 09:00 UTC] yinhua_lu at allyes dot com
os wrong!
[2007-02-08 04:03 UTC] yinhua_lu at allyes dot com
yes,this a bug!i am want to know hao to solve the problem.