Jahongir Rahmonov
Jahongir Rahmonov

Reputation: 13763

Make Cyrillic characters appear as they are(without encoding) in browser address bar

Basically, when I put Cyrillic symbols in address bar like this:

https://venta.uz/items/men/#?categories=мужское

it gets encoded and appears in URL address bar like this:

https://venta.uz/items/men/#?categories=%5B%22%D1%88%D0%BE%D1%80%D1%82%D1%8B%22%5D

Similar questions have been asked a couple of times, here and here for example. But they all asked why this happens.

Here is why it happens:

It's a URL encoding in which all non-alphanumeric characters except -_. are replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs.

My question is:

Is it possible to fix this? maybe there is a workaround or hack that would allow Cyrillic characters appear as they are in the URL address bar?

Upvotes: 0

Views: 1679

Answers (1)

runout
runout

Reputation: 81

This behaviour to convert urls to some kind of a machinery text is a technique against fishing attacks, when attacker register domains like "googlе.com", "аpplе.com" with substituded similar-looking unicode characters ("a" and "e" in this examples are cyrillic).

This is kind of annoying for any non-english speakers of course, because copied URSs become enormous and unreadable.

For Firefox the solution is quite simple (thanks to this answer from Superuser): go to about:config and set browser.urlbar.decodeURLsOnCopy to true.

For Chrome and it's derivatives you won't find this kind of setting. Instead you can use extensios like Copy Unicode URLs.

Upvotes: 2

Related Questions