Welcome Guest, Not a member yet? Register   Sign In
Form validator rule alpha and UTF-8
#1

[eluser]davlyn[/eluser]
When I set the alpha validation rule for a input field in my form and when I type characters like ŠĐČĆŽ etc the rule doesn't see those characters as letters. I use a database that has UTF-8 encoding. How do I modify the regex ( "/^([a-z])+$/i" ) to include those letters?

EDIT: I can do it with "/(*UTF8)^([a-zšđčćž])+$/i" . Is there a better solution?


Messages In This Thread
Form validator rule alpha and UTF-8 - by El Forum - 11-09-2012, 10:47 AM
Form validator rule alpha and UTF-8 - by El Forum - 11-09-2012, 12:49 PM
Form validator rule alpha and UTF-8 - by El Forum - 11-10-2012, 12:51 AM
Form validator rule alpha and UTF-8 - by El Forum - 11-10-2012, 01:03 AM
Form validator rule alpha and UTF-8 - by El Forum - 11-11-2012, 03:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB