JAVA 中URL链接中文参数乱码的若干处理方法

方法一: http://xxx.do?ptname='我是中国人'  String strPtname = request.getParameter("ptname");  strPtname = new String(strPtname.getBytes("ISO-8859-1"), "UTF-8");    方法二:  <%@ page contentType="text/html;chars
相关文章
相关标签/搜索