java.io.CharConversionException: Not an ISO 8859-1 character

        response.reset();
        response.setContentType("application/json;charset=UTF-8");

//// java.io.CharConversionException: Not an ISO 8859-1 character //使用response.getOutputStream() 出现异常,提示是ISO 8859-1字符编码 // response.getOutputStream().print(mapper.writeValueAsString(result)); // response.getOutputStream().flush(); response.getWriter().print(mapper.writeValueAsString(result)); response.getWriter().close();

 

posted @ 2018-04-28 16:02  一叶南渡  阅读(583)  评论(0编辑  收藏  举报