ギリシャ文字を含むxlsファイルを作成するために、以下のヘッダーを使用しました。ギリシャ文字でexcelを作成する
最初の試み:
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");
第二の試み:
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");
作成したファイルalthought私がそれを開いたとき、それは(テキストエディタで表示)正しいギリシャ語の文字が含まれていますms-excelギリシャ文字はsympolsとして表示されます。
私は同じ結果を持つxls(xlsバイナリ形式を開く)を作成するライブラリも試しました。このライブラリには、コードページと文字セットを設定するオプションがありますが、何もありません。
ありがとうございました。
ありがとうございます@periklis、私は別のライブラリを使用しています。私はいつもutf-8を使用しています – reven