js调整代码:
var selname = '小小';
selname = encodeURI(name);
window.location.href ="toStudentInfo?name="+ selname ;
java代码
String name = request.getParameter("name");
try {
name = new String(name.getBytes( "iso-8859-1" ), "UTF-8" ); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }