页面里加入
<%@ page contentType="text/html; charset=GBK" %>
或者
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
试试呢?
<%@ page contentType="text/html; charset=GBK" %>
或者
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
试试呢?
<head>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</head>jsp:
文件头加
<%@ page contentType="text/html;charset=gb2312"%>
着句话就可以了。