乱码问题~~求救 !!!
问一下 如果在jsp中用form1.action= "UserManager.do?do=getUser&username=张三 " 在action中收到的String username=request.getParameter( "username ") 是乱码 为什么?????
------解决方案--------------------string = new String( string.getBytes( "iso-8859-1 "), "GB2312 ")
------解决方案--------------------或者也可以这样:String username=request.getParameter( "username ")==null? " ":new String(request.getParameter( "username ").getBytes( "iso-8859-1 "));