JSP中文显示乱码,小方框,问号

<%@ page contentType="text/html;charset=gbk" %>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">


<%= new String(aaaaaa.getBytes("ISO-8859-1"),"gbk")

server.xml
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="GBK"/>

你可能感兴趣的:(jsp)