我在用dojo的tree widget时,是这样处理json乱码的
一、JAVA代码中这么处理:
httpServletResponse.setContentType("text/json; charset=gb2312");
二、JSP页面头部加上:
<%@ page contentType="text/html; charset=gb2312" %>
一、JAVA代码中这么处理:
httpServletResponse.setContentType("text/json; charset=gb2312");
二、JSP页面头部加上:
<%@ page contentType="text/html; charset=gb2312" %>