Take a look at !preg_match() using the POSIX extended meta character value
[:print:]
WeberSites LTD wrote:
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?
thanks
berber
--
PHP General Mailing
ge-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Ramazanoglu
Sent: Friday, June 08, 2007 11:43 PM
To: php-general@lists.php.net
Subject: [PHP] Re: high-bit characters
WeberSites LTD dedi ki:
> I'm trying to validate an RSS feed and getting errors about "high-bit
>
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
}
--
Abdul
3 matches
Mail list logo