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

Problems with degree (º) and inverted question mark (¿)

Does anyone had the same issue as me? I have a regex in my validator that has the ¿ character inside. When I wrote º and send to the server, it also validates it as good. I think this is gonna be problem of UTF-8, but I don't know.



125.8k
Accepted
answer

Add a u to your regex like; /\D{3}(.*)/u to enable unicode mode.



33.8k

I will save the page to don't forget your post, but for now I realized I don't need it. Thanks indeed, I will inform you when I use it :D