日期:2014-05-18  浏览次数:20795 次

传参数时出现乱码问题
JAVA中为什么   传中文参数上去   接收的却是乱码呢?
该怎么解决?

------解决方案--------------------
request.setCharacterEncoding( "gb2312 ");
String strMsg=new String(request.getParameter( "msg ").getBytes( "ISO8859_1 "), "gb2312 ");
------解决方案--------------------
我在这个贴子里,帮你回答了两遍,你竟都没有看到。555555~~~~

http://community.csdn.net/Expert/TopicView3.asp?id=5651137
------解决方案--------------------
在接收页面写上request.setCharacterEncoding( "gb2312 ");就好了,
其它的不用写了