<?php require_once 'excel_reader2.php'; $data = new Spreadsheet_Excel_Reader("example.xls"); ?> <html> <head> <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>
mb_internal_encoding("UTF-8");
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />