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()就可以为刘美美
本文共 235 字,大约阅读时间需要 1 分钟。
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()就可以为刘美美
转载于:https://www.cnblogs.com/lipeineng/p/5908652.html