Hello.

I am writing a script online store, and a situation arose.
There will be several filters in the directory, and it is necessary that the value of these filters be also in the address bar, and these lines must be encoded so that the browser works correctly with them.

Source string encoded in UTF-8: + / DVB-T2, DVB-C
Urlencode encoded string: % 2B% 2FDVB-T2% 2C + DVB-C
Rawurlencode encoded string: % 2B% 2FDVB-T2% 2C% 20DVB-C
The string is generated through the service http://meyerweb.com/eric/tools/dencoder/:% 252B% 252FDVB-T2% 252C% 2BDVB-C

Of all the above, only the last one works. All the others give a 404 error, possibly due to the fact that some characters are not encoded.

How to fix this situation?

Thank.

  • > The string generated by the service Equivalent to option number two: %2B%2FDVB-T2%2C%20DVB-C . This, if it is banished twice, it will also encode the percent symbols. > coded tsya.ru > All the rest give 404 server or script error? What does the script get? If the string is generated on the server, then in what form does it appear on the user’s page? - etki
  • These are filters in the product catalog. Select the type of tuner (note: + / DVB-T2, DVB-C). And this filter is added to the address bar and it turns out something like site.ru/catalog/zhk-televizory/1/890:%2B%2DVB-T2%2C+DVB-C; And here instead of 32 there can be any value. - Oleg Zagorodniy

0