Re: high-bit characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



WeberSites LTD dedi ki:

> I'm trying to validate an RSS feed and getting errors about "high-bit
> characters".
> How can I check if a string contains any high-bit characters?

if (preg_match("/[\x80-\xff]/", $string)) {
        # high-bit char found
} else {
        # no high-bit char
}

-- 
Abdullah Ramazanoglu
aramazan ÄT myrealbox D0T cöm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux