2024-09-30 00:34:15
服务器端:
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);
//解码:中国
2024-09-30 00:55:28
2024-09-30 00:41:58