-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDN E-mail with username in Unicode is not accepted #668
Comments
This is intentional, and mentioned in #88. UTF-8 in the local part of email adresses is only supported via RFC6531, and that has very little adoption as yet (pretty much only gmail). What's more of a problem is that if you use such an address and then try to send it via a server which doesn't support it, you're stuck with having to do everything in RFC6857, which really isn't pretty and requires architectural changes (because a message cannot be rendered until after you have connected to the server). As part of that process, punycode can be applied to the local part of addresses via RFC5891 and RFC5890, but support for that is even worse than for RFC6531. In the absence of that support, we are back to RFC5321's definition of an email address, in which the address you're trying to use is not valid, as the validate function says. In short, doing this is an enormous amount of work, so if you feel like writing it and doing a PR, be my guest. |
The Universal Acceptance Steering Group (UASG), supported by the Internet Corporation for Assigned Names and Numbers (ICANN), is a community-led, industry-wide initiative working on creating awareness and identifying and resolving problems associated with the universal acceptance of domain names. The purpose of these efforts is to help ensure a consistent and positive experience for Internet users globally. You may find the following information useful in developing systems, internet applications that accept IDNs, EAI and New gTLDs. Universal Acceptance Quick Guide: Good Practice Recommendations: Subscribe to the General Universal Mailing List https://mm.icann.org/mailman/listinfo/ua-discuss You will find case studies and tools to test EAI on https://uasg.tech/. |
Validation fails, if the E-mail username contains non-ASCII characters:
Actual output:
Expected output:
The text was updated successfully, but these errors were encountered: