日期:2014-05-20 浏览次数:20669 次
String str = URLEncoder.encode("我们是好朋友", "utf-8");
URLDecoder ud = new URLDecoder();
System.out.println(ud.decode(str, "utf-8"));
String str = URLEncoder.encode("我们是好朋友", "utf-8");,服务端再解码
URLDecoder ud = new URLDecoder();
System.out.println(ud.decode(str, "utf-8"));