Contact: aviboots(AT)netvision.net.il
39,950 questions
51,892 answers
573 users
$str = "PHP Java C C++ À È Ì Ò"; $result = preg_match('/[^\x20-\x7e]/', $str); echo mb_detect_encoding($str, 'ASCII', true) ? "all ASCII" : "there is non-ASCII"; /* run: there is non-ASCII */