Have you ever had problems with %20
vs +
spacing encoding when using external HTTP APIs?
We've faced this problem, multiple times. Our own REST API faced this problem. But don't be afraid, there's a reason for it, and there are plenty of solutions out there.
So, what is RFC 3986?
RFC 3986 is the URI (Unified Resource Identifier) Syntax document, in this document you can find with very profound detail everything you will ever want to know about how URIs should be written and how they should be read.
In the last couple of years, modern web browsers have been pushing towards more compact URI schemes. So every modern web browser encodes spaces as +
instead of %20
, while every other character is still encoded using Percent Encoding.