String keyWord =URLDecoder.decode( "%CD%F8%C2%E7%CA%B1%BF%D5","UTF-8"); System.out.println(keyWord); //将普通字符串转换成 //application/x-www-form-urlencoded字符串 String urlStr =URLEncoder.encode( "网络时空" ,"UTF-8"); System.out.println(urlStr);