@@ -0,0 +1,932 @@
+package com.zhangbz.response;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Apublic class OutServlet extends HttpServlet %7B%0A%0A%09public void doGet(HttpServletRequest request, HttpServletResponse response)%0A%09%09%09throws ServletException, IOException %7B%0A//%09%09response.getOutputStream().write(%22%D0%B9%22.getBytes(%22utf-8%22));%0A//%09%09response.setHeader(%22Content-Type%22, %22text/html;charset=utf-8%22);%0A%09%09%0A//%09%09response.setCharacterEncoding(%22utf-8%22);%0A//%09%09response.setHeader(%22Content-Type%22, %22text/html;charset=utf-8%22);%0A%09%09%0A%09%09response.setCharacterEncoding(%22uft-8%22);%0A%09%09response.setContentType(%22text/html;charset=utf-8%22);%0A%09%09response.getWriter().write(%22%D0%B9%22);%0A%09%7D%0A%0A%09public void doPost(HttpServletRequest request, HttpServletResponse response)%0A%09%09%09throws ServletException, IOException %7B%0A%09%09doGet(request, response);%0A%09%7D%0A%0A%7D%0A

response output