Юрий
Guest
PEAR::SpreadSheet выводит крикозяблы
Установил PEAR::SpreadSheet_Excel_Writer
Беру пример использования объекта с сайта pear.php.net
после запуска выводит крикозяблы 
В чем проблема???
----
Заголовок такой (может ому-то понадобится)
HTTP/1.1 200 OK
Date: Tue, 29 Nov 2005 12:28:01 GMT
Server: Apache/1.3.33 (Win32) PHP/5.0.5
X-Powered-By: PHP/5.0.5
Content-Disposition: attachment; filename="test.xls"
Expires: 0
Cache-Control: must-revalidate, post-check=0,pre-check=0
Pragma: public
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/vnd.ms-excel
Установил PEAR::SpreadSheet_Excel_Writer
Беру пример использования объекта с сайта pear.php.net
PHP:
require_once 'Spreadsheet/Excel/Writer.php';
// Creating a workbook
$workbook = new Spreadsheet_Excel_Writer();
// sending HTTP headers
$workbook->send('test.xls');
// Creating a worksheet
$worksheet =& $workbook->addWorksheet('My first worksheet');
// The actual data
$worksheet->write(0, 0, 'Name');
$worksheet->write(0, 1, 'Age');
$worksheet->write(1, 0, 'John Smith');
$worksheet->write(1, 1, 30);
$worksheet->write(2, 0, 'Johann Schmidt');
$worksheet->write(2, 1, 31);
$worksheet->write(3, 0, 'Juan Herrera');
$worksheet->write(3, 1, 32);
// Let's send the file
$workbook->close();

В чем проблема???
----
Заголовок такой (может ому-то понадобится)
HTTP/1.1 200 OK
Date: Tue, 29 Nov 2005 12:28:01 GMT
Server: Apache/1.3.33 (Win32) PHP/5.0.5
X-Powered-By: PHP/5.0.5
Content-Disposition: attachment; filename="test.xls"
Expires: 0
Cache-Control: must-revalidate, post-check=0,pre-check=0
Pragma: public
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/vnd.ms-excel