在网上查过,编写jsp时在文头加上<%@ page contentType=“text/html;charset=GBK”%>和<%@ page contentType=“text/html;charset=gb2312”%>,都不行,把charset改为UTF-8乱码解决,即<%@ page contentType=“text/html;charset=UTF-8”%>
解决Tomcat部署jsp在网页打开后乱码
最新推荐文章于 2022-04-14 18:11:58 发布
在网上查过,编写jsp时在文头加上<%@ page contentType=“text/html;charset=GBK”%>和<%@ page contentType=“text/html;charset=gb2312”%>,都不行,把charset改为UTF-8乱码解决,即<%@ page contentType=“text/html;charset=UTF-8”%>