Wednesday, January 14, 2009

check string contains chinese character or not in C#

string word = "是集室內";

char fo = word[0];

UnicodeCategory cat = char.GetUnicodeCategory(fo);
if (cat == UnicodeCategory.OtherLetter)
//chinese char
//english char


vivek said...

thanx a lot,for this.

Anonymous said...

We're a group of volunteers and opening a brand new scheme in our community. Your website offered us with helpful information to work on. You have done an impressive activity and our whole neighborhood shall be thankful to you.

My webpage; sonographer ultrasound tech