Reputation: 6896
I have this element in my form:
<input type="email" placeholder="Enter your e-mail">
When I enter שלום@שלום.com
, Google Chrome 39 says:
But why? I thought new e-mail addresses can have UTF-8 characters so that shouldn't be the problem.
Upvotes: 1
Views: 648
Reputation: 182
This is to avoid SQL Injection.
cur.execute("select UNAME from users where EMAIL=? and UPASS=?",(email,pwd))
Upvotes: 0
Reputation: 4748
It seems there is a bug in Chrome or HTML specification. Check out these:
Here is a workaround: use שלום@xn--9dbne9b.com
instead of שלום@שלום.com
Upvotes: 2
Reputation: 2485
Have you tried adding accept-charset="UTF-8"
to the form
tag.?
Or as a meta tag in your html:
<meta charset="utf-8">
Upvotes: 0