Ciao a tutti... continuo a litigare con i vari charset!
Ho questo codice per tirare fuori un file Excel senza troppi problemi
Codice PHP:
<?php
$filename = "segnalazioni.xls";
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
header('Pragma: no-cache');
header('Content-Type: text/html; charset=utf-8');
header ("Content-type: application/vnd.ms-excel");
header ("Content-Disposition: attachment; filename=$filename");
echo('<table border="1">');
echo('<tr>');
echo('<td width="75">èòàù$€</td>');
echo('</tr>');
echo('</table>');
?>
Tutto ok... si apre, ma nella cella vedo tutti segni strani tranne che le lettere da me inserite.
Che posso fare?