I have simple html form that I want to submit. It is login form. I am submitting it on ruby on rails controller. When one of the inputs (email) has some special characters in its value, like č, ć, đ, š or ž. Those characters get replaced by ? character.
If I have value in input field user?@domain.com it will not pass evaluation against "/\A[\w\d._%-]+\@[\w\d.-]+.[\w]{2,4}\z/"
but for example, value userž@domain.com is seen (with puts method) in ruby code as user?@domain.com and it passes regex validation above mentioned.
I am using jruby 1.6.5.1 and Rails 2.3.8
Does anyone knows what is this happening?