public static int ChineseLetterCount(string strText)
{
byte[] byts = System.Text.Encoding.GetEncoding("gb2312").GetBytes(strText);
return byts.Length - strText.Length;
}
C# 统计汉字字数函数
最新推荐文章于 2021-03-22 00:04:56 发布