public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); String res=request.getParameter("p"); res=new String(res.getBytes("ISO-8859-1"),"GBK"); System.out.println(res); }