网站介绍:文章浏览阅读4.9k次,点赞2次,收藏8次。request.setCharacterEncoding()是设置从request中取得的值或从数据库中取出的值 response.setContentType("text/html;charset=gb2312")是设置页面中为中文编码 前者是设置动态文字(参数,数据库),后者设置页面静态文字response.setContentType指定 HTTP 响应的编码,同时指定了浏览_setcontentencoding 有哪些
- 链接地址:https://blog.csdn.net/lifan5/article/details/11100285
- 链接标题:setContentType和setCharacterEncoding、pageEncoding和contentType_setcontentencoding 有哪些-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9752
- 网站标签:setcontentencoding 有哪些