Consider a Mastodon/Fediverse handle, like @[email protected] . What kinds of restrictions are there on "username"? Can I assume any valid unicode could go in there?

@mcc In practice, it varies a lot. In theory, I have seen different people come to different conclusions based on the RFCs involved.

Related discussion:
https://github.com/swicg/activitypub-webfinger/issues/9
https://shkspr.mobi/blog/2024/02/internationalise-the-fediverse/

Allowed characters in preferredUsername · Issue #9 · swicg/activitypub-webfinger

How does the acct: URI format constrain the structure of preferredUsername? https://www.rfc-editor.org/rfc/rfc7565.html#section-7

GitHub
@julian @mcc it's a good discussion!