src/Controller/Component/CsvExportComponent.php 1 location
|
@@ 52-54 (lines=3) @@
|
49 |
|
$basename = basename($save_directory); |
50 |
|
|
51 |
|
// ファイル名の変換(IE対応) |
52 |
|
if (strstr(env('HTTP_USER_AGENT'), 'MSIE') || strstr(env('HTTP_USER_AGENT'), 'Trident') || strstr(env('HTTP_USER_AGENT'), 'Edge')) { |
53 |
|
$basename = mb_convert_encoding($basename, "SJIS", "UTF-8"); |
54 |
|
} |
55 |
|
$this->_controller->response->file($save_directory, ['download' => true, 'name' => $basename]); |
56 |
|
} |
57 |
|
|
src/Controller/Component/FixedLengthExportComponent.php 1 location
|
@@ 67-69 (lines=3) @@
|
64 |
|
$basename = basename($save_directory); |
65 |
|
|
66 |
|
// ファイル名の変換(IE対応) |
67 |
|
if (strstr(env('HTTP_USER_AGENT'), 'MSIE') || strstr(env('HTTP_USER_AGENT'), 'Trident') || strstr(env('HTTP_USER_AGENT'), 'Edge')) { |
68 |
|
$basename = mb_convert_encoding($basename, "SJIS", "UTF-8"); |
69 |
|
} |
70 |
|
$this->_controller->response->file($save_directory, ['download' => true, 'name' => $basename]); |
71 |
|
} |
72 |
|
|