![]() ![]() Percent-encoding a reserved character involves converting the character to its corresponding byte value in ASCII and then representing that value as a pair of hexadecimal digits (if there is a single hex digit, a leading zero is added). When a character from the reserved set (a "reserved character") has a special meaning (a "reserved purpose") in a certain context, and a URI scheme says that it is necessary to use that character for some other purpose, then the character must be percent-encoded. Other characters in a URI must be percent-encoded. RFC 3986 section 2.2 Reserved Characters (January 3986 section 2.3 Unreserved Characters (January 2005) The sets of reserved and unreserved characters and the circumstances under which certain reserved characters have special meaning have changed slightly with each revision of specifications that govern URIs and URI schemes. Using percent-encoding, reserved characters are represented using special character sequences. ![]() Unreserved characters have no such meanings. For example, forward slash characters are used to separate different parts of a URL (or more generally, a URI). Reserved characters are those characters that sometimes have special meaning. The characters allowed in a URI are either reserved or unreserved (or a percent character as part of a percent-encoding). Percent-encoding in a URI Types of URI characters As such, it is also used in the preparation of data of the application/x-www-form-urlencoded media type, as is often used in the submission of HTML form data in HTTP requests. Although it is known as URL encoding, it is also used more generally within the main Uniform Resource Identifier (URI) set, which includes both Uniform Resource Locator (URL) and Uniform Resource Name (URN). URL encoding, officially known as percent-encoding, is a method to encode arbitrary data in a uniform resource identifier (URI) using only the US-ASCII characters legal within a URI. For links within Wikipedia needing percent-encoding, see Help:URL ยง Fixing links with unsupported characters ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |