ajax解决中文数据乱码问题

HttpServletResponse response = ServletActionContext.getResponse();

response.setContentType("text/xml;charset=utf-8");

response.setHeader("Cache-Control", "no-cache");

PrintWriter writer =  response.getWriter();

Writer.write();

你可能感兴趣的:(ajax解决中文数据乱码问题)