Mastodon: IDN domains don't render correctly in usernames

Created on 15 Jun 2018  ·  3Comments  ·  Source: tootsuite/mastodon

IDN domains in usernames are displayed as punycode in usernames in the web interface, which isn't the intended result.

screenshot from 2018-06-15 22-49-35

here, for example, "@[email protected]" should be displayed as "@TransPosees@pénibles.transposées.eu"


  • [x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • [x] This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
bug i18n ui

Most helpful comment

it would also be possible to follow the rules that are basically only accept utf8 chars that are used in the writing systems accepted by the TLD, which remove basically all possibility of confusion without alienating everyone who doesn't want to use english domain names.

All 3 comments

If there are objections about confusables, it is possible to fall back to punycode when potential confusion is detected, but, otherwise, render the URL as full unicode.

Refs:

Since version 22 (2013), Firefox displays IDNs if either the TLD prevents homograph attacks by restricting which characters can be used in domain names or labels do not mix scripts for different languages. Otherwise IDNs are displayed in Punycode. [10]

it would also be possible to follow the rules that are basically only accept utf8 chars that are used in the writing systems accepted by the TLD, which remove basically all possibility of confusion without alienating everyone who doesn't want to use english domain names.

I think it needs to be more permissive than that. I use the domain hæresiar.ch (a domain hack), and the æ ligature is not endemic in Swiss orthography.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lauramichet picture lauramichet  ·  3Comments

KellerFuchs picture KellerFuchs  ·  3Comments

ghost picture ghost  ·  3Comments

marrus-sh picture marrus-sh  ·  3Comments

golbette picture golbette  ·  3Comments