byte[] buf="到这里strtemp就是空".getBytes("utf-16");
String strTemp=new String(buf,"utf-16"); //到这里strtemp就是空
byte[] bufnew=strTemp.getBytes("GB2312");
String strTemp2 = new String(bufnew,"GB2312");
System.out.println(strTemp);
System.out.println(strTemp2);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货