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. -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php