说明:在页面开头加上
< %@page contentType="text/html;charset=gb2312" language="java"%>
另外在<head>中加上<meta http-equiv="content-type" content="text/html; charset=gb2312">
另外注意的就是在<form>中加上method="post"(不加的话,即使前面两条满足了也没有用),用method="get"也还是中文乱码
所以只能用method="post"
< %@page contentType="text/html;charset=gb2312" language="java"%>
另外在<head>中加上<meta http-equiv="content-type" content="text/html; charset=gb2312">
另外注意的就是在<form>中加上method="post"(不加的话,即使前面两条满足了也没有用),用method="get"也还是中文乱码
所以只能用method="post"