用这个方法显示
response.reset();
response.addHeader("Content-Disposition", "attachment;filename="+ java.net.URLEncoder.encode(f.getName(), "UTF-8"));
OutputStream os= new BufferedOutputStream(response.getOutputStream());
response.setContentType("application/msexcel;charset=UTF-8");
用这个中文不显示
response.addHeader("Content-Disposition", "attachment;filename="+ new String(f.getName().getBytes()));
OutputStream os= new BufferedOutputStream(response.getOutputStream());
response.setContentType("application/vnd.ms-excel;charset=UTF-8");