摘要: HttpServletRequest request = ServletActionContext.getRequest();String agent = request.getHeader("User-Agent");boolean isMSIE = (agent != null && agent.indexOf("MSIE") != -1);if (isMSIE) { //IE filename= URLEncoder.encode(filename, "UTF-8");} else { //FF filename 阅读全文
posted @ 2012-04-20 19:33 秋裤大叔 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 需要使用两种不同编码方式来处理,在Firefox 11和IE 8下测试通过:HttpServletRequest request = ServletActionContext.getRequest();String agent = request.getHeader("User-Agent");boolean isMSIE = (agent != null && agent.indexOf("MSIE") != -1);if (isMSIE) { filename= URLEncoder.encode(filename, "UT 阅读全文
posted @ 2012-04-20 19:17 秋裤大叔 阅读(750) 评论(0) 推荐(0) 编辑