I'm trying to get a form to validate with unicode characters.

For a very simple example, I have:

$_POST['first_nm'] = "BertrĂ¡n";

$filters = array ( 'first_nm' => 'Alpha' );
$validators = array( 'first_nm' => array ('Alpha', 'presence' => 'required)
);
$input = Zend_Filter_Input($filter, $validators, $_POST);


Now, a simple $input->isValid() call and it fails. Returns: [first_nm] =>
Array ( [stringEmpty] => ' ' is an empty string )

Is there something special I need to do in order to get Zend_Filter_Input to
understand UTF-8? I've checked the data being passed to PHP; it is valid. I
checked the code and it seems to do some utf8 check, but apparently it's not
working for some reason.

Thanks

-- 
Philip
[EMAIL PROTECTED]
http://www.gpcentre.net/

Reply via email to