摘要: HttpServletResponse response = ServletActionContext.getResponse(); response.setCharacterEncoding("utf-8"); response.setContentType("text/xml;charset=utf-8"); response.setHeader("Cache-Control", "no-cache"); //确保在取得PrintWriter对象之前先设置response的编码;顺序搞错将无法解决中文乱码问题! 阅读全文
posted @ 2013-09-27 11:17 李小加 阅读(909) 评论(0) 推荐(0) 编辑