PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #9833

Chinese data are getting lost

Details

Submitted2007-01-15 07:56 UTC
Fromyinhua_lu at allyes dot com
Assignedalan_k
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP Version4.3.1
OSlinux
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.