I'm creating an excel file downloadable from a web page with this piece of code:
$sql = "SELECT * FROM my_table";
$ressource_sql = execute_sql($sql);
while ($row = mysql_fetch_assoc($ressource_sql)) {
$ligne_hve.=$row['id'] . ';';
$ligne_hve.=$row['name'] . ';';
$ligne_hve.=$row['products'] . ';';
$ligne_hve .= "\n";
}
$file_hve = fopen($file_export_hve, "w+");
fwrite($file_hve, $ligne_hve);
fclose($file_hve);
The Excel file is regenerated each time the user consult the web page with this code, all the website is ISO8859-1,i know excel is using a strange encoding (windows-1252) but for now i didn' t find any tricks to get the french accent (well displayed on the website) into the excel...
Thx for help