假如就是提交一个文本框(含有中文数据,用Get方法提交 name属性是a),提交到servlet页面,public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.print(request.getParameter("a"));
}
这样就可以获得提交的中文数据