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()就可以还原为刘美美
时间: 2024-11-11 01:58:28
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()就可以还原为刘美美