/******************************
* 取字符串长度
******************************/
public int getStringLength(String s) {
int p = 0;
try {
int iLength = 0;
int irealLength = 0;
int j = 0;
p = s.getBytes("GBK").length;
} catch(java.io.UnsupportedEncodingException e) {}
return p;
}
* 取字符串长度
******************************/
public int getStringLength(String s) {
int p = 0;
try {
int iLength = 0;
int irealLength = 0;
int j = 0;
p = s.getBytes("GBK").length;
} catch(java.io.UnsupportedEncodingException e) {}
return p;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货