Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols)
| From: | Bob | Date: | Sat, 27 Feb 2010 00:32:59 +0000 |
| Subject: | Re: ctype_print returns false for British Pound symbol (and non-ASCII symbols) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1391@lists.php.net to get a copy of this message | ||
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.