JavaEE之 servlet与jsp 编码

编码 1 编码之响应编码 响应编码: 当使用response.getWriter()来向客户端发送字符数据时,如果在之前没有设置编码,那么就默认使用ISO,因为iso不支持中文,一定会乱码 当使用response.getWriter()之前可以使用response.setCharaceterEncoding() 来设置字符流的编码为gbk或utf-8 当使用response.getWriter()
相关文章
相关标签/搜索