Is it technically possible to support Arabic usernames?

9 months ago by claim_arguably to c/ask_experienced_devs

And how to do it? Looking for a tutorial.

slazer2au 16 points 9 months ago

If you support unicode you can d̸͍̳̣̱̼̞̠̝͚̽͑̀̾̈́̎̇̀͂̆̀̚͟͜ͅò̸̧̻̩̲͈̭͎͎̗̝̫͉̓̕͠ ̴̝̜̻̝̹̘̺͜͠a̶̛̱͙͙̭̟͍͍̟̫͎͉͐͌͂̎̇͊̈́͋̇̔̈̏̚l̵̢̜͉̩͍̯̯̤͔̪̲̟͈̅̌̉̏̾͑̓͂͆̀̐͂͟͟͡ļ̷̜̥͍͓͉͈̮̻̰̘̹̣̒͌̒̑̅͂͐̏̾̓̀̽͟͝͡ ̷̡̛͚̻̪͈͕̭̪͎̪̎͑́̆͑͂̉͑͜͠🄺🄸🄽🄳 🄾🄵 𝔴𝔢𝔦𝔯𝔡 𝓈𝓉𝓊𝒻𝒻.

path: 0 21718300, hotness: undefined, score: 16, children: 0
tyler 10 points 9 months ago

Yes, if you support Unicode fully you’ll support Arabic automatically. There are RTL code points that will switch text direction automatically. Browsers support this at the html and css level. There’s a bunch of different ways.

path: 0 21718348, hotness: undefined, score: 10, children: 0
ludrol 3 points 9 months ago

If you won't provide any details no one will be able to help you.

path: 0 21718210, hotness: undefined, score: 3, children: 0
refalo 2 points 9 months ago

yes

path: 0 21732788, hotness: undefined, score: 2, children: 0
Corbin 2 points 9 months ago

Linux supports Unicode usernames. However, bidirectional rendering is application-specific. I have not tried this myself, so I'm not sure what happens. Also, I'm not sure whether the bidirectional markers are canonicalized away, so the input method likely matters too.

path: 0 21760716, hotness: undefined, score: 2, children: 0
ask_experienced_devs
ask_experienced_devs

@programming.dev

login for more options
1517
63
9

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

go to feed...