Hi all, I downloaded the last CakePHP 1.2 RC3 and replaced all my validation rules "allowEmpty" and "required" by the new provided one which is "notEmpty".
I tested the rules with a simple form I populate with data and then submit. The problem is that my rules fail when I use non UTF8 encoding and special character data (like "é"). If I change my browser encoding to UTF8, and re populate the fields, my tests pass. My configuration: PHP 5.2.6 Apache 2.2.8 Windows (WAMP Server) I think the problem might come from the new rules, written in /cake/ libs/validation.php which use PCRE expressions with a new option which is "u" (which means the expression has to be UTF8, see http://php.net/manual/en/reference.pcre.pattern.modifiers.php for a complete description of this option). Some users already reported this problem (see link below) but I just wanted to make sure if this is a new CakePHP constraint or if the problem comes from me ? Another message reporting this problem: http://groups.google.com/group/cake-php/browse_thread/thread/a138dcb7d4ac603d/d9d452a69c4d7e58?lnk=gst&q=+validation+won%27t+work#d9d452a69c4d7e58 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
