按字节长度截取字符串

需求:按字节数截取字符串,可是不容许劈开汉字。blog   public static final String subStrViaByteLen(String src, Charset charset, int len) {   if (src==null || src.length()<1) {    return src;   }   if (len < 1) {    return "";
相关文章
相关标签/搜索