public static int ChineseLetterCount(string strText)
{
byte[] byts = System.Text.Encoding.GetEncoding("gb2312").GetBytes(strText);
return byts.Length - strText.Length;
}
C# 统计汉字字数函数
最新推荐文章于 2024-01-11 21:39:40 发布
459

被折叠的 条评论
为什么被折叠?



