Re: high-bit characters
| From: | Abdullah Ramazanoglu | Date: | Fri, 08 Jun 2007 21:42:49 +0000 |
| Subject: | Re: high-bit characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256398@lists.php.net to get a copy of this message | ||
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