81,094
社区成员
发帖
与我相关
我的任务
分享
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=utf-8");
String names=request.getParameter("dddd");
//String str = new String(names.getBytes("ISO-8859-1"),"utf-8");
PrintWriter out = response.getWriter();
out.println("<h1>" + names + "</h1>");
}