摘要:
URL中编码格式为ISO-8859-1,处理中文只需将编码格式转换ISO-8859-1 方法一: http://xxx.do?ptname='我是中国人' String strPtname = request.getParameter("ptname"); strPtname = new String(strPtname.getBytes("ISO-8859-1"), "UTF-8"); 方法二(推荐使用): <%@ page contentType="text/html;charset=gb2312& 阅读全文
posted @ 2012-02-16 19:12
pocketzwt
阅读(447)
评论(0)
推荐(0)
浙公网安备 33010602011771号