0

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?

Community
  • 1
  • 1
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
  • A fix assumes something is broken and it's not the case here. By the way, FireFox keeps Cyrillic characters as they are without encoding (possibly because I have Russian as system-wide language for non-Unicode programs, but maybe it is unrelated). – Roman R. Jul 27 '15 at 06:51
  • @RomanR. you are right. Firefox keeps those characters as they are. But the reason you mentioned is, I think, unrelated. Because, I have Russian in my Chrome too :( – Jahongir Rahmonov Jul 27 '15 at 07:08
  • My FF & Chrome keep russian letters in URL (Windows 8, non-russian regional settings) http://screencast.com/t/gpE4RNnNr – Aleksej Vasinov Jul 27 '15 at 10:49
  • @AleksejVasinov, I just noticed that if I put Cyrillic characters in a query string(as GET parameters) they are being rendered as they are. But if I put such characters in hash part, they are being encoded, like [here](https://venta.uz/items/men/#?subCats=%5B%22%D1%88%D0%BE%D1%80%D1%82%D1%8B%22%5D) – Jahongir Rahmonov Jul 27 '15 at 10:54
  • This strikes me as a very malicious question to ask. – Andrew Dec 05 '19 at 13:21

0 Answers0