|
@@ -59,7 +59,9 @@ public class HttpUtils {
|
|
|
public static void setResponseHeader(HttpServletResponse response, String fileName) {
|
|
|
try {
|
|
|
fileName = new String(fileName.getBytes(), StandardCharsets.UTF_8);
|
|
|
- response.setContentType("application/octet-stream;charset=ISO8859-1");
|
|
|
+ //response.setContentType("application/octet-stream;charset=ISO8859-1");
|
|
|
+ response.setContentType("application/vnd.ms-excel;charset=gb2312");
|
|
|
+
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
|
|
|
response.addHeader("Pargam", "no-cache");
|
|
|
response.addHeader("Cache-Control", "no-cache");
|