Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols)
Stanislav Malyshev <[email protected]> Fri, 26 Feb 2010 16:16:11 -0800
| Newsgroups | gmane.comp.php.internationalization |
|---|---|
| Organization | Zend Technologies |
| Message-ID | <[email protected]> |
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 [email protected] http://www.zend.com/ (408)253-8829 MSN: [email protected] -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php