1.HTML中文乱码解决
确认每个页面有
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
2.request接收中文参数发生乱码
换成以下形式接收参数:
<%=new String(request.getParameter("City").getBytes("iso-8859-1"),"UTF-8")%>
1.HTML中文乱码解决
确认每个页面有
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
2.request接收中文参数发生乱码
换成以下形式接收参数:
<%=new String(request.getParameter("City").getBytes("iso-8859-1"),"UTF-8")%>