element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.01k stars 1.96k forks source link

Non-ASCII room aliases #16813

Open olmari opened 3 years ago

olmari commented 3 years ago

Description

Element-web/desktop doesn't allow using non-ASCII characters when defining new local room alias, while matrix specifications perfectly allow for such thing.

Steps to reproduce

Version information

Solution:

Just accept whatever peoples write in it, as "everything" is supported in matrix specs, apart from actual not allowed characters like whitespaces or so. Element even shows and joins to rooms with aliast containing รถ or even ๐Ÿ˜€ so even that isn't generally an issue at least with rooms list. Should there be some other ineffiency in room alias handler (ad-hoc in text in chat or pill generator or whatever, those needs then fixing, would be kinda separate issue then).

ptman commented 3 years ago

https://matrix.org/docs/spec/#room-aliases ?

olmari commented 3 years ago

@ptman All that it says relating is "human readable", which means different thing for different peoples in different geographies. Certainly not first 7-8 bits from ASCII table :)