pcdelphi

char ch[10] = "你";

int iType = (unsigned char )*ch & 0x80;
cout << iType << endl;

如果iType等于128,就说明这是一个汉字字符

分类:

技术点:

相关文章: