struts配置文件: <result name="excel" type="stream"> <param name="contentType">application/vnd.ms-excel,charset=ISO8859-1</param> <param name="contentDisposition">attachment;filename="${downloadFileName}"</param> <param name="bufferSize">1024</param> <param name="inputName">excelFile</param> </result> 1、中文文件名不顯示: downloadFileName=“中文abc.xls”; 這時候導出的excel,文件名是abc.xls,沒有中文 2、IE亂碼,火狐和谷歌顯示正常: downloadFileName = new String(URLDecoder.decode(fileName,"UTF-8").getBytes(), "ISO8859-1"); 3、完全解決方案: String fileName="中文abc.xls"; downloadFileName=new String(fileName.getBytes("gb2312"), "iso8859-1");