i have used the following headers in order to create xls files that contains Greek characters on the fly.
first attempt:
header("Content-Type: application/$file_type;charset=utf-8");
header("Content-Disposition: attachment; filename=$file_name.$file_ending");
header("Pragma: no-cache");
header("Expires: 0");
second attempt:
header("Content-Type: application/$file_type;charset=windows-1253");
header("Content-Disposition: attachment; filename=$file_name.$file_ending");
header("Pragma: no-cache");
header("Expires: 0");
the created file althought it contains the correct Greek characters (viewed with a text editor) when i open it at the ms-excel the Greek characters are shown as sympols.
i have also tried a library that creates xls (open xls binary format) with the same outcome. This library has options to set the codepage and the charset but still nothing.
any ideas?
thanks.