[更新]修改CSV导出支持

This commit is contained in:
Anyon 2018-03-30 16:19:19 +08:00
parent 7810a9e202
commit df1a61c40a

View File

@ -160,7 +160,7 @@ class ToolsService
{ {
header('Content-Type: application/octet-stream'); header('Content-Type: application/octet-stream');
header("Content-Disposition: attachment; filename=" . iconv('utf-8', 'gbk//TRANSLIT', $filename)); header("Content-Disposition: attachment; filename=" . iconv('utf-8', 'gbk//TRANSLIT', $filename));
echo @iconv('utf-8', 'gbk//TRANSLIT', '"' . implode('","', $headers) . "\"\n"); echo @iconv('utf-8', 'gbk//TRANSLIT', "\"" . implode('","', $headers) . "\"\n");
} }
/** /**