HomeListSpider homeListSpider = new HomeListSpider();
ArrayList<MainPagePicBean> array = homeListSpider.getMore30Items(url);
String string=array.get(0).getUploadTime();
String string2 = " 1\u4e2a\u6708\u524d\u4e0a\u4f20";
System.out.println(string);
System.out.println(string2);
System.out.println(new String(string));
System.out.println(new String(string.getBytes(),"GBK"));
System.out.println(new String(string2.getBytes(),"GBK"));为什么两个同样的字符串输出的值不同,以及如何将string转换成汉字
添加回答
举报
0/150
提交
取消