My export script:
if($_POST){
$file = 'FKDB_XLS';
$filename = $file."_".date("Y-m-d_H-i",time());
header("Content-type: application/vnd.ms-excel; charset=utf-8"); // dunno if the charset does anything for this application type..
header("Content-Disposition: attachment; filename=$filename");
echo stripslashes($_SESSION['item']); unset($_SESSION['item']);
exit;
}
Basicly, it just turns HTML ($_SESSION['item']
as <table>{rows}</table>
) into *.xls and allows Excel to draw tables from that data, as most of you know, probably.
The problem is, when opened in Excel, everything's OK, except... all the values are written incorrectly, with all the Ä, ņÅ
and so on instead of 'Ā' or so, again.
What should I do to prevent that?
Thanks in advance!