I need to validate some user input that is encoded in UTF-8. Many have recommended using the following code:
preg_match(\'/\\A( [\\x09\\x0A\\x0D\\x20-\\
Have you tried ereg() instead of preg_match? Perhaps this one doesn't have that bug, and you don't need a potentially buggy workaround.