HttpPost过程中使用的URLEncoder.encode(something, encode)

URLEncoder.encode("刘美美", "utf-8").toString()       =     %E5%88%98%E7%BE%8E%E7%BE%8E

然后%E5%88%98%E7%BE%8E%E7%BE%8E通过

URLDecoder.decode("%E5%88%98%E7%BE%8E%E7%BE%8E", "utf-8").toString()就可以还原为刘美美

posted @ 2016-09-26 11:57  万物为铜  阅读(2423)  评论(0)    收藏  举报