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

-- 
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to