my password field (Zend Form) is allowing string length 6,20
but When I type “guru£”(string lenth 5:fasle) it is returning true without minlenth error and same time if I type “guru££££” (string length: true) it is return max lenth error.
can any one help me out regrading this one. and Thanks in advance-Guru
You seem to be using some multibyte character encoding, probably UTF-8. You must explicitly tell this to Zend_Validate so that it works correctly:
Or you can do it while creating validator object:
See Zend_Validate > Encoding of values in Zend Framework manual.