UTF-8 problem with Spreadsheet Excel Writer

Spreadsheet Excel Writer is a PEAR package that allows you to generate Excel documents.

When we try to generate an new Excel document using UTF-8 string we ran into a display error.

There is a simple way to fix this problem. See the example below:

$workbook = new Spreadsheet_Excel_Writer();
// add this row
$worksheet =& $workbook->addWorksheet("My worksheet");
// add this row

Leave a Reply

Your email address will not be published.