服务器端:String encodeStr = URLEncoder.encode("中国", "utf-8"); System.out.println("处理后:" + encodeStr); //处理后:%E4%B8%AD%E5%9B%BD 客户端:String decodeStr = URLDecoder.decode(encodeStr, "utf-8"); System.out.println("解码:" + decodeStr); //解码:中国

1万+

被折叠的 条评论
为什么被折叠?



