Page 1 of 1

limit chars in string

Posted: Tue Apr 25, 2006 6:07 am
by pelegk2
if i recive a string from a user i want to check that some chars are not allowed (like for example all hebrew letters)
how do i so that?
thnaks in advance
peleg

Posted: Tue Apr 25, 2006 10:34 am
by feyd
If they are UTF-8 encoded, you can just check the ordinal range of the characters, however I can't think of anything that already does that easily..