setContentType和setCharacterEncoding、pageEncoding和contentType_setcontentencoding 有哪些-CSDN博客

网站介绍:文章浏览阅读4.9k次,点赞2次,收藏8次。request.setCharacterEncoding()是设置从request中取得的值或从数据库中取出的值 response.setContentType("text/html;charset=gb2312")是设置页面中为中文编码 前者是设置动态文字(参数,数据库),后者设置页面静态文字response.setContentType指定 HTTP 响应的编码,同时指定了浏览_setcontentencoding 有哪些