[转载]C# 判断字符是否中文还是英文
时间:2014-02-07 10:11:59
收藏:0
阅读:251
private static bool IsHanZi(string ch) { byte[] byte_len = System.Text.Encoding.Default.GetBytes(ch); if (byte_len.Length == 2) { return true; } return false; }
原文:http://www.cnblogs.com/iack/p/3539117.html
评论(0)