|
@@ -115,8 +115,8 @@ public class DeletionController {
|
|
|
values.put(sheetName,dataList);
|
|
|
HSSFWorkbook wb = ExcelUtil.getHSSFWorkbook(sheetName,head,values,null);
|
|
|
try {
|
|
|
- // 不设置字符编码
|
|
|
- response.setContentType("application/vnd.ms-excel");
|
|
|
+ response.setContentType("application/octet-stream; charset=utf-8");
|
|
|
+ response.setCharacterEncoding("utf-8");
|
|
|
response.addHeader("Content-Disposition", "attachment;filename=" + EncodeUtil.encodeUTF8("缺失明细.xls"));
|
|
|
ServletOutputStream outputStream = response.getOutputStream();
|
|
|
wb.write(outputStream);
|