Table of Contents

HexDecode(encoding, hex_text)

Category: Web function


Description

This function converts the provided hex string into a text value. The text is assumed to have the specified encoding.


Arguments

ArgumentTypeDescription
encoding Text The method that was used to create the encoded text. See the table below.
hex_text Text The text string to be decoded.

Return value type: Text.


Encoding Notes
base64
base64url Base64 in URL encoding
utf-8
utf-16


Examples

hexdecode('base64url', '56616c68616c6c61')  //Returns 'VmFsaGFsbGE'
hexdecode('utf-8', '56616c68616c6c61')  //Returns 'Valhalla'


See also