??Java????????????????????????????
???????????? ???????[ 2014/9/9 11:02:22 ] ??????????????? Java
????????java??????????web???????????У??????????????????????????????????????漰?????????????????????????????????????????????????????????????????????Щ????????????????????????ж????????????Щ??????????????????????????????????????java web????е???????????
???????????????form????????????????????????post??get??????
????1??post??????
??????jsp????е?page????У??????pageEncoding??????????jsp?????servlet????????????form??????????????????post??????????????????pageEncoding??????????????????????????????????pageEncoding=”utf-8”????????request.getParameter()?????????????????????????new String(getBytes(“iso-8859-1”)??”utf-8”)????????????????????????????????????????????iso-8859-1????????????????????????????2????????????utf-8????—>iso-8859-1??????????????? utf-8????—>iso-8859-1????—>iso-8859-1????—>utf-8??????????????????????????????????????????????????????????????????request.setCharacterEncoding()???????????????post?????Ч?????????request.getParameter()?????????????????
????2??get????
??????post????????????????pageEncoding?????????get???????????post??????????tomcat??conf?????????server.xml????????????????????Connector????????URIEncoding?????????????????get?????????????????????????get?????Ч????????????post?????
???????????Ajax??????????????????????????URL??????????????get???????????????pageEncoding???????????URIEncoding??????????к????????????????????????????encodeURI?????????????URLDecoder.decode(str??”utf-8”)?????????????????????????????encodeURI??????????utf-8???????????????????utf-8????—>utf-8????—>iso-8859-1????—>utf-8????????????????????????????????????????????????????????????utf-8?????????????????????????????????????????????????utf-8????iso-8859-1?????????κ??????????????????????????????????????????????????????
???????????????????“???”???????????????????б???????????磺
????gbk????—>utf-8????—>utf-8????—>gbk????????????
???????gbk????—>utf-8???????????????????????????????????????????????????????????……
??????
???·???
??????????????????
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