0
header('Content-Disposition: attachment; filename="cyrilic_filename.ext"');
是否有可能設置它是一個UTF-8名稱?或者我要將文件名轉換爲ASCI?內容處置標題和cyrilic文件名
header('Content-Disposition: attachment; filename="cyrilic_filename.ext"');
是否有可能設置它是一個UTF-8名稱?或者我要將文件名轉換爲ASCI?內容處置標題和cyrilic文件名
是的,這是可能的,但並不適用於所有瀏覽器。見http://greenbytes.de/tech/tc2231/,http://greenbytes.de/tech/webdav/rfc5987.html和http://greenbytes.de/tech/webdav/draft-ietf-httpbis-content-disp-latest.html。
這就是幫助!謝謝! – Eugeny89 2010-12-08 15:18:58
這個問題已經在這裏問過了:http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http – 2010-12-08 10:13:40