Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols)
| From: | Stanislav Malyshev | Date: | Sat, 27 Feb 2010 00:16:11 +0000 |
| Subject: | Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1389@lists.php.net to get a copy of this message | ||
Hi!
So the ctype functions are barely of of any use for characters beyond the ASCII range? Is that by design, or due to technical limitations? Either way, it should be clearly stated in the PHP documentation.PHP is not a Unicode language yet. If you think it's a problem you're welcome to port ext/unicode stuff from PHP 6 branch. ext/intl does a lot of string stuff (collations, etc.) but not character stuff.
And why does ctype_print return true for the British Pound symbol for some people (including my hosting company's server) but false for others? (Someone on php.general confirmed this strange disparity.)Probably different encodings or different locale databases. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com