HttpServletResponse response = ServletActionContext.getResponse(); response.setCharacterEn我爱男闺蜜coding("UTF-8"); response.setContentType("text/xml;charset= UTF-8 "); PrintWriter out = response.getWriter();//留意,这句话必须放在最后面,否则还会是中文乱码
HttpServletResponse response = ServletActionContext.getResponse(); response.setCharacterEn我爱男闺蜜coding("UTF-8"); response.setContentType("text/xml;charset= UTF-8 "); PrintWriter out = response.getWriter();//留意,这句话必须放在最后面,否则还会是中文乱码