C# 判断字符串是否为中文

来源:互联网 发布:知乎图标矢量图 编辑:程序博客网 时间:2024/05/29 02:31
if (!string.IsNullOrEmpty(testzifuchuan))                    {                        if ((int)testzifuchuan[0] > 127)                        {                            Console.Write("中文");                        }                    }

0 0