Elisei
January 13th, 2009, 12:25 AM
hi everybody:
i am trying to export a table from mysql using php to have it in .csv format. The trick is that the table has text in 18 different languages (English, French, Russian, Japanese, Greek, etc). So the non-english characters are corrupt in the output file.
Is there some kind of special universal encoding that one should be using to accommodate for high language variation?
right now we have:
header("Content-Type: text/x-csv; chartset=utf-8");
header("Content-Disposition: attachment; filename=".$tbl.".csv");
print $csv_output;
exit;
above of course works great in linux - csv file contains proper characters but the issue occurs in windows both with IE and firefox.
any suggestions are appreciated.
i am trying to export a table from mysql using php to have it in .csv format. The trick is that the table has text in 18 different languages (English, French, Russian, Japanese, Greek, etc). So the non-english characters are corrupt in the output file.
Is there some kind of special universal encoding that one should be using to accommodate for high language variation?
right now we have:
header("Content-Type: text/x-csv; chartset=utf-8");
header("Content-Disposition: attachment; filename=".$tbl.".csv");
print $csv_output;
exit;
above of course works great in linux - csv file contains proper characters but the issue occurs in windows both with IE and firefox.
any suggestions are appreciated.