Hello, I'm new to PHP Phalcon. I have a variable called username and I'm developing an Arabic website. so when I check if varaible is empty I use this approach
$this->validate(new PresenceOf(array( 'field' => 'username', 'message' => 'You need to type username' )));
it works when I type English characters but if I type Arabic characters it return error message 'you need to type username'.
how to solve this problem? thanks :)