You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by ro...@mail.com on 2012/11/19 22:41:26 UTC

[validator] Validating email address with non-ASCII characters

Hi all, it seems that neither EmailValidator.isValid(string), nor GenericValidator.isEmail(string), accept non-ASCII UTF-8 (international) characters. Both of these methods return false when I pass in something like this: юзер@mydomain.com.

 According to RFC 6531 non-ASCII characters are now allowed in the email address. Here is the short version from Wiki (http://en.wikipedia.org/wiki/Email_address):

 "International characters above U+007F are permitted by RFC 6531 http://tools.ietf.org/html/rfc6531 , though mail systems may restrict which characters to use when assigning local parts."

 Any plans to fix this in the Validator?