摘要: 1、正则表达式方法:System.Text.RegularExpressions.Regex.Replace(str, "[^\x00-\xff]", "**").Length2、Encoding方法:Encoding.Default.GetByteCount(str) 阅读全文
posted @ 2013-01-03 14:03 kylin.chen 阅读(281) 评论(0) 推荐(0) 编辑