通过GET/POST传“中文字串”时的问题???
现在通过GET传“中文字串”在得到值的页面第一次输出为乱符。刷新后就正常了怎么回事呢?请指教!还有GET与POST处理中文字串是否一样?
redirct.jsp?str=中文字串
在redirct.jsp代码中如下输出
String temp_str= new String(request.getParameter("str").getBytes("ISO8859_1"),"GB2312");
out.print(temp_str);
有<%@page contentType="text/html;charset=gb2312"%>