Hacker News new | ask | show | jobs
by qingcharles 410 days ago
Does your regex support emoji usernames and domains? (both of which are in use, e.g. https://mailoji.com/)
3 comments

Both parts are limited to 7-bit ASCII or a subset thereof. Emojis have to be in punycode. You could theoretically use UTF-7 for the local-part but nothing supports it in practice.
That's the spec, for sure! The domains are converted to punycode, but the usernames? I have no idea what happens to them. My tests showed some providers delivered them, some didn't. I'm sure there are a bunch of people out there using accented characters and CJK etc in their usernames and wondering why it's not going so well...
That is officially the most cursed thing I've read all week. People really do love to do bizarre things just for the hell of it sometimes.
My project doesn't even support emojis or unicode. In context, it's not an issue.