[转载]C# 判断字符是否中文还是英文

private static bool IsHanZi(string ch) 
{ 
     byte[] byte_len = System.Text.Encoding.Default.GetBytes(ch); 
     if (byte_len.Length == 2) { return true; }
     return false; 
}

 

posted on 2014-02-07 00:41  iackjee  阅读(1203)  评论(0编辑  收藏  举报

导航