private void test1(HttpServletResponse response) throws IOException {
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
response.setHeader("refresh", "3");
String data=new Random().nextInt(1000)+"";
response.getWriter().write(data);
}
-------------------------------------------------------------------------------