在weblogic下 poi3.8 导出excel数据,中文会成乱码
但在tomcat下是正常的,各位求解,谢谢!
但在tomcat下是正常的,各位求解,谢谢!
解决方案 »
- Spring自动装配时Mapper为空指针
- 在线考试系统倒计时
- EJB3.0中怎样调用xFire开发的WebService??在线等。。。。。。
- ssh 问题 晕 看了好久 都找不到 大家帮帮忙
- mapxstreme for java
- jsp怎么打包成安装程序,双击安装配置好运行环境(sql、tomcat等)
- 哪位能够告诉我tapestry的运行机制阿!!!!!
- 请高手帮忙!!!
- Lomboz中jstl编译的问题
- 如何在session bean 里连接oracle 只要连上100分就是你的,在线等候
- Myeclipse struts2+hibernate+spring问题
- js中的值该用什么方法添加到数据库呢
// fileName = new String(fileName.getBytes("UTF-8"), "UTF-8");
//if (request.getHeader("User-Agent").toLowerCase().indexOf("firefox") > 0) fileName = new String(fileName.getBytes("UTF-8"), "ISO8859-1");//firefox浏览器
// else
//
// if (request.getHeader("User-Agent").toUpperCase().indexOf("MSIE") > 0)
//
// fileName = URLEncoder.encode(fileName, "UTF-8");//IE浏览器
} catch (UnsupportedEncodingException e) {
// should no happen
}
System.out.println(fileName);
response.reset();
response.setContentType("application/msexcel;charset=UTF-8");
response.setHeader("Content-disposition", "attachment;filename= " + fileName);
}
downloadName = new String(downloadName.getBytes(), "ISO8859-1");
response.setHeader("Content-disposition", "attachment;filename=" + downloadName);
response.setContentType("application/x-download");
ServletOutputStream servletOutputStream = response.getOutputStream();
wb.write(servletOutputStream);
servletOutputStream.flush();
servletOutputStream.close();