Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols)
| From: | Rasmus Lerdorf | Date: | Fri, 26 Feb 2010 21:53:16 +0000 |
| Subject: | Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols) | ||
| References: | 1 2 3 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1382@lists.php.net to get a copy of this message | ||
Bob wrote:
> Hello, Norbert.
>
> I'm using Netbeans IDE and it's in UTF-8 mode, as is my en_GB.UTF-8
> locale.
>
> Just to be sure, though, I also tried this:
>
> $string = "\xc2\xa3"; //UTF byte encoding for the British Pound sign
> $this->assertTrue(ctype_print($string));
>
> I believe that \xc2\xa3 is the UTF-8 byte encoding for the £ symbol, but
> correct me if I'm wrong.
ctype functions do not support multibyte encodings.
-Rasmus