Using ASCII in URLs is simple and is less error prone than “supporting” unicode via percent encoding. It is also just a convention to use ASCII for usernames in many platforms. ASCII is also supported out of the box in major OSes while some unicode characters might not. What about impersonation? And what about people trying to type in the username of someone that uses unicode? It is not logical to use unicode in this case.
Comment on Request to lemmy: can you please allow non-latin letters as well
SorteKanin@feddit.dk 2 months agoActivityPub users need to be identified by some identifier in the URL, and Lemmy chose the user name to be that identifier. As a result, non-Latin usernames become… complicated.
Sorry but this is just false. URIs can easily encode UTF-8 characters and it’s perfectly standard to do so via percent-encoding. Example: en.wikipedia.org/wiki/😂. Your browser will even automatically convert that 😂 into the appropriate percent-encoding.
This is, if you ask me, an unnecessary limitation in Lemmy.
Asudox@lemmy.world 2 months ago
SorteKanin@feddit.dk 2 months ago
It is also just a convention to use ASCII for usernames in many platforms.
That’s only true for platforms that only caters to the English speaking world. The fediverse should be and is much broader than that.
ASCII is also supported out of the box in major OSes while some unicode characters might not.
What? There is no major OS that does not support Unicode out of the box.
Percent encoding is perfectly fine and users won’t even see it.
Also please stop down voting twice with your alt accounts, that’s not cool.
sznowicki@lemmy.world 2 months ago
Punycode would work here better I think as it’s plain ASCI with no special characters except a dash if I recall correctly.
SorteKanin@feddit.dk 2 months ago
Punycode is not solving the same problem. Punycode solves Unicode in domain names. Percent encoding is for Unicode in URL paths. Lemmy only needs to worry about the paths, Punycode should be “supported” out of the box without any special handling
Redjard@lemmy.dbzer0.com 2 months ago
Link is detected without the emoji in my app. You might wanna hardcode the link as https://en.wikipedia.org/wiki/😂
[https://en.wikipedia.org/wiki/😂](https://en.wikipedia.org/wiki/😂)