<? require_once 'excel_reader2.php'; $xls = new Spreadsheet_Excel_Reader(); $xls->setUTFEncoder('iconv'); $xls->setOutputEncoding('UTF-8'); $xls->read('grafik.xls'); ?> <html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> table.excel { border-style:ridge; border-width:1; border-collapse:collapse; font-family:sans-serif; font-size:12px; } table.excel thead th, table.excel tbody th { background:#CCCCCC; border-style:ridge; border-width:1; text-align: center; vertical-align:bottom; } table.excel tbody th { text-align:center; width:20px; } table.excel tbody td { vertical-align:bottom; } table.excel tbody td { padding: 0 3px; border: 1px solid #EEEEEE; } </style> </head> <body> </body> </html>
Może mi ktoś podpowiedziec dlaczego nie wyświetla mi polskich znaków tylko jakieś dziwne krzaczki?? Czytałem kilka tematów na forum i wszędzie piszę że trzeba zmienic kodowanie na UTF-8 , tutaj jest to niby zrobione a nadal nie działa...
Jeżeli to coś zmienia to grafik był pisany w Excel'u XP.