Ethnaというわけではないけど、PHP経由でバイナリファイルをダウンロードさせる場合、以下のようなコードでできるようです。 $tmp_file = './../files/product_document_rev2.0000.doc'; // サーバー上での保管場所とファイル名(日本語は避ける) $dst_file = "製品ドキュメント(第2版).doc"; // ダウンロード時に提案するファイル名(日本語もOK) if(file_exists($tmp_file)) { $dst_file = mb_convert_encoding($dst_file, "SJIS", "UTF-8"); // ファイル名の文字コードを変換 header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=$dst_file"); readfile($tmp_file); // 出力 exit; } |