Last day I needed to check the UITextField ‘s text whether it is from English language or other Unicode character form other language. And also how many characters are form English language and how many from others?
Here is how I solved this problem.
for(int i=0;i<[textField.Text length];i++)
unichar lastChar = [textField.Text characterAtIndex:i];
if(lastChar >= 0x000 && lastChar <=0x255)
unichar is the type for Unicode characters and if its value is from 0x000 to 0x255 then this character is from English language. Otherwise it is from other language.
If you know any better solution please share with us.