Data.toString()
Description
Converts to a string.
The following options are supported for the encoding parameter:
- "utf8" (default) - Encode the text as UTF-8
- "hex" - Decode the text as hexadecimal representation
- "base64" - Decode the text as Base64 format
- "base64url" - Decode the text as Base64URL format
Syntax
data.toString()data.toString(encoding)
Parameters
toString(encoding?)
encoding?
Return Value
The converted string.