取中英文混合的字串的长度

来源:互联网 发布:搞笑拍照软件 编辑:程序博客网 时间:2024/05/18 16:56

new String(aString.getBytes("GBK"), "ISO8859_1").length()

例如: