How it works and examples
Encode a single path segment or query value, not an entire URL. Spaces become %20; a literal + remains + when decoding. Example: caffè & tea becomes caff%C3%A8%20%26%20tea. Decoding rejects malformed percent escapes and invalid UTF-8.