楼主看这样可否
String chinese = "和";
byte[] b = chinese.getBytes("GBK");
int r1 = (b[0]&0x0080)>>7;
int r2 = b[0]&0x8000>>15;
System.out.println(r1);
System.out.println(r2);
String chinese = "和";
byte[] b = chinese.getBytes("GBK");
int r1 = (b[0]&0x0080)>>7;
int r2 = b[0]&0x8000>>15;
System.out.println(r1);
System.out.println(r2);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货