.net 下判断中英文字符串长度

Posted on 2015-04-15 14:02  性感的心田  阅读(162)  评论(0编辑  收藏  举报

System.Text.Encoding.Default.GetBytes(str).Length