Escape data, preserve delimiters
02Percent encoding represents an octet with a percent sign and two hexadecimal digits.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
DIAGRAM§ 2.1 ↗
RFC 3986 · § 2.1EXAMPLE
4 / 4
04
Avoid changing meaning twice.
%252F decodes once to %2F, not directly to a delimiter.
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
Read the updated RFC section ↗
An encoded delimiter can mean something different from the delimiter itself.
- Unreserved characters are letters, digits, hyphen, period, underscore, and tilde.
- A reserved character used as data must be percent-encoded when it would conflict with a delimiter.
- Do not encode or decode the same string more than once.
The examples simplify the wire representation. Follow the linked specification and application profile for implementation.
Read the RFC section ↗Diagrams simplify the RFC. Read the linked sections for complete requirements.
Privacy