We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

problem with "alfanum" filter

hi,

I have a problem with "alfanum" filter:

string: ã~eé

$this->request->getPost("acao", array("trim", "string", "alphanum"))

result: �e�

how to solve this??

phalcon 1.3.2

php 5.5

postgres 9.3

apache 2.4

ALL UTF-8

tanks

I don't know how the filter works, but it may not be unicode-aware. You may need to write your own filter with regular expressions. The u at the end of an expression will activate unicode mode.