JSP页面为UTF-8 ,通过href标签带中文参数跳转,传参数到后台处理action内乱码
通过在后台处理action内增加一个对中文参数的处理来解决乱码问题
String str_name= request.getParameter("name");
str_name= new String( name.getBytes("iso-8859-1"), "UTF-8");
JSP页面为UTF-8 ,通过href标签带中文参数跳转,传参数到后台处理action内乱码
通过在后台处理action内增加一个对中文参数的处理来解决乱码问题
String str_name= request.getParameter("name");
str_name= new String( name.getBytes("iso-8859-1"), "UTF-8");