回答編集履歴
1
追伸追加
answer
CHANGED
@@ -11,4 +11,11 @@
|
|
11
11
|
ブラウザによっては、Content-Disposition でファイル名と拡張子を指定しても、Content-Type の指定通り拡張子を書き換えてしまうものがあります。以下の記事の Opera がその例です。
|
12
12
|
|
13
13
|
ダウンロードの際の拡張子 と MIME Type の指定
|
14
|
-
[http://surferonwww.info/BlogEngine/post/2010/09/02/Downloading-file-by-setting-extension-and-mime-type-in-header.aspx](http://surferonwww.info/BlogEngine/post/2010/09/02/Downloading-file-by-setting-extension-and-mime-type-in-header.aspx)
|
14
|
+
[http://surferonwww.info/BlogEngine/post/2010/09/02/Downloading-file-by-setting-extension-and-mime-type-in-header.aspx](http://surferonwww.info/BlogEngine/post/2010/09/02/Downloading-file-by-setting-extension-and-mime-type-in-header.aspx)
|
15
|
+
|
16
|
+
【追伸】
|
17
|
+
|
18
|
+
Content-Disposition: attachment; filename= で指定するファイル名が日本語ですと IE では文字化けするので注意してください。回避策はあります。詳しくは以下の記事を見てください。
|
19
|
+
|
20
|
+
ダウンロードファイル名の文字化け
|
21
|
+
[http://surferonwww.info/BlogEngine/post/2011/03/20/Downloading-file-with-Japanese-file-name.aspx](http://surferonwww.info/BlogEngine/post/2011/03/20/Downloading-file-with-Japanese-file-name.aspx)
|