转换为ASCII的编码: String s = URLEncoder.encode(str, "UTF-8"); 再转换为UTF-8中文: String str = URLDecoder.decode(s, "UTF-8");