ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2385


Ignore:
Timestamp:
Apr 3, 2007, 9:01:16 PM (15 years ago)
Author:
ebihara
Message:

#593:ファイルダウンロード時、ファイル名をShift-JISに変換するように

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_dev28_misc03/public_html/download.php

    r2368 r2385  
    3939$file = db_file_c_file4filename($_GET['filename']);
    4040$original_filename = preg_replace("/\r|\n/", '', $file['original_filename']);
    41 header('Content-Disposition: attachment ; filename="' . $original_filename . '"');
     41header('Content-Disposition: attachment ; filename="' . mb_convert_encoding($original_filename, 'SJIS', 'UTF-8') . '"');
    4242header('Content-Length: '. strlen($file['bin']));
    4343header('Content-Type: application/octet-stream');
Note: See TracChangeset for help on using the changeset viewer.