TEENFRONT Posted March 9, 2009 Share Posted March 9, 2009 Hi I own a flash multiplayer game site, and we have a flash chat powered by php. Im getting alod of traffic from arab nations which isnt a problem but the arabic language seems to lag the chat with crtain characters that there using. I want to block everything thats NOT english text... is thats possible? Quote Link to comment Share on other sites More sharing options...
TEENFRONT Posted March 10, 2009 Author Share Posted March 10, 2009 is this possible? Im just looking for a function that returns true or false if its english text or not. cheers Quote Link to comment Share on other sites More sharing options...
xylex Posted March 11, 2009 Share Posted March 11, 2009 No need for regex, php gives you filter functions for this. http://us.php.net/manual/en/function.filter-var.php filter_var($string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); Quote Link to comment Share on other sites More sharing options...
effigy Posted March 11, 2009 Share Posted March 11, 2009 What encoding are you using? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.