Jsoup 请求链接含中文乱码 10
Jsoup请求法院失信信息中文乱码StringlogonURL="http://111.205.123.134/search.do?pName=苏华&pCardNum=&...
Jsoup请求法院失信信息中文乱码
String logonURL = "http://111.205.123.134/search.do?pName=苏华&pCardNum=&pProvince=0";
System.out.println("logonURL:<" + logonURL + ">");
Document document = Jsoup.connect(logonURL)
.data("jquery", "java")
.userAgent("Mozilla")
.cookie("auth", "token")
.timeout(300000) //设置连接超时时间
.get();
System.out.println("Document doc2 toString():" + document.toString());
System.out.println("\n\n\n");
System.out.println("页面信息:" + document.getAllElements().toString());
System.out.println("\n\n\n");
System.out.println("HTML:=============\n" + document.html());
直接请求亦乱码
http://shixin.court.gov.cn/search?pName=%E7%8E%8B%E5%85%86%E4%B8%9C&pCardNum=&pProvince=0 展开
String logonURL = "http://111.205.123.134/search.do?pName=苏华&pCardNum=&pProvince=0";
System.out.println("logonURL:<" + logonURL + ">");
Document document = Jsoup.connect(logonURL)
.data("jquery", "java")
.userAgent("Mozilla")
.cookie("auth", "token")
.timeout(300000) //设置连接超时时间
.get();
System.out.println("Document doc2 toString():" + document.toString());
System.out.println("\n\n\n");
System.out.println("页面信息:" + document.getAllElements().toString());
System.out.println("\n\n\n");
System.out.println("HTML:=============\n" + document.html());
直接请求亦乱码
http://shixin.court.gov.cn/search?pName=%E7%8E%8B%E5%85%86%E4%B8%9C&pCardNum=&pProvince=0 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏10(财富值+成长值)
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询