Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
encodeURIComponent(s)
s
A string that contains a portion of a URI or other text to be encoded.
A copy of s, with certain characters replaced by hexadecimal escape sequences.
URIError
Indicates that s contains malformed Unicode surrogate pairs and cannot be encoded.