Encoding Your Data

You can encode and decode URLs and convert strings to hexadecimal format by using the methods provided by the EncodingUtil class.

This example shows how to URL encode a timestamp value in UTF-8 by calling urlEncode.

This next example shows how to use convertToHex to compute a client response for HTTP Digest Authentication (RFC2617). In this example, myData is a placeholder value.

See Also