1

A question. Is there any difference that any of you know of in using %5B%5D vs [] in a URL for params?

Current: https://www.example.se?location_ids%5B%5D=123&location_ids%5B%5D=234

Vs.

Other: https://www.example.se?location_ids[]=123&location_ids[]=234

Percent-encoding is a mechanism to encode 8-bit characters that have specific meaning in the context of URLs. It is sometimes called URL encoding. The encoding consists of substitution: A ‘%’ followed by the hexadecimal representation of the ASCII value of the replace character.

Source - I have found this but it doesn’t make me understand why percent encoding is better.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.