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

[email protected] (Bob) Fri, 26 Feb 2010 19:32:59 -0500
Newsgroups php.i18n
Message-ID <[email protected]>
On Fri, 26 Feb 2010 16:18:40 -0800, Rasmus Lerdorf wrote:

> 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.

Very disappointing. But thank you all for helping to clear this up.

I'll knock together a compromise regex that makes sure no control 
characters are present, and then do a project-wide find and replace.