1 String value = "张三"; 2 //对中文进行URL编码 3 value = URLEncoder.encode(value, "UTF-8");
1 //URL解码 2 value = URLDecoder.decode(value,"UTF-8");