Category: Web function
This function converts the provided text value into a hex string. The text is assumed to have the specified encoding. Refer to the supported encodings, below.
Argument | Type | Description |
---|---|---|
encoding | Text | The encoding method to use on text. See the table below. |
hex_text | Text | The text string to be encoded. |
Return value type: Text.
The first argument, encoding, is case-insensitive. The second argument, text, is case-sensitive.
Encoding | Notes |
---|---|
base64 | |
base64url | Base64 in URL encoding |
utf-8 | |
utf-16 |
hexencode('base64url', ''VmFsaGFsbGE=') //Returns '56616c68616c6c61'
hexencode('utf-8', 'Valhalla') //Returns '56616c68616c6c61'