Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols)

From: Date: Sat, 27 Feb 2010 00:18:40 +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-1390@lists.php.net to get a copy of this message
Bob wrote: > You're joking? > > 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. > > 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.) Like I said, the PHP ctype functions are just thin wrappers over the underlying system's ctype functions. Like many other things in PHP, we are just a thin shell on top of basic system capabilities. Whatever restrictions apply to the underlying system will apply to the PHP functions. And, it works for some people because those people passed in the single-byte ISO-8859 pound character whereas for the non-working version you are passing in the 2-byte UTF-8 character. -Rasmus

« previous php.i18n (#1390) next »