Sfoglia il codice sorgente

--update handleRequest()-setCharacterEncoding("UTF-8");

zzy.zhiyuan.foxmail 8 anni fa
parent
commit
74caffcc0f

+ 2 - 0
jfwWebUtil/src/main/java/org/jfw/web/servlet/fileupload/cached/CachedUploadServlet.java

@ -75,6 +75,7 @@ public class CachedUploadServlet extends HttpServlet {
75 75
		res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
76 76
		res.addHeader("Cache-Control", "post-check=0, pre-check=0");
77 77
		res.setHeader("Pragma", "no-cache");
78
		res.setCharacterEncoding("UTF-8");
78 79
		res.setContentType(byJsonp ? "text/html" : "application/json");
79 80
	}
80 81
@ -89,6 +90,7 @@ public class CachedUploadServlet extends HttpServlet {
89 90
	}
90 91
91 92
	private void handleRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
93
		req.setCharacterEncoding("UTF-8");
92 94
		String queryString = req.getQueryString();
93 95
		Map<String, String[]> map = StringUtil.decodeURLQueryString(queryString);
94 96
		Integer cLimit = CachedUploadServlet.parseInt(map.get("countLimit"));