Java get ???????????
???????????? ???????[ 2015/8/20 14:36:57 ] ??????????????????? ???????
?????????
????1??????????????
????String b = new String(request.getParameter("name").getBytes("iso-8859-1"));
????2?? String a = new String(request.getParameter("name").getBytes("iso-8859-1")??"GBK");
??????? gbk ???????????
????3?????????????????????????
??????????????? java.net.URLEncoder.ecode("????"??"GBK");//??????????????????
????eg: window.location.href="test.do?
????method=fuck&name='??'&test='<%=java.net.URLEncoder.encode("?????й?"??"GBK")%>'";
????// ???????????
??????????????1
????String test1 = new String(request.getParameter("test").getBytes("ISO-8859-1")??"gbk");
??????????1 ???????
???????java.net.URLDecode.decode ????
????String name = new String(URLDecoder.decode(request.getParameter("name")??"gbk"));
????4???????????????????javascript ???????? ????? utf-8
????encodeURIComponent(str);//str ??????????
????5???????????????
????tomcat ???? uriEncoding ='GBK' gbk ????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11