标签:ati excel header pos res xxx bytes string tco
开始导出excle时名称是乱码的,加上下面的就可以了,
String FileNam="xx医院_xxxx_xx_xx.xls";
res.setCharacterEncoding("UTF-8");
res.setContentType("application/octet-stream");
String fileName_1 = new String(FileName.getBytes("UTF-8"), "iso8859-1");
res.setHeader("Content-Disposition", "attachment;filename=" + fileName_1);
标签:ati excel header pos res xxx bytes string tco
原文地址:http://www.cnblogs.com/52czm/p/7088177.html