|
@@ -55,7 +55,7 @@ public class DownloadController {
|
|
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO-8859-1");
|
|
|
}
|
|
|
response.setHeader("Content-disposition", "attachment; filename=" + fileName);
|
|
|
- response.setContentType("application/vnd.ms-excel; charset=utf-8");
|
|
|
+ response.setContentType("application/octet-stream;charset=utf-8");
|
|
|
response.setCharacterEncoding("UTF-8");
|
|
|
// 将流中内容写出去
|
|
|
OutputStream outputStream = response.getOutputStream();
|