User Tools

Site Tools


Action disabled: revisions
syntax:functions:hexencode

HexEncode(encoding, text)

Category: Web function


Description

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.


Arguments

ArgumentTypeDescription
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.


Remarks

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


Examples

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


See also

syntax/functions/hexencode.txt · Last modified: 2021/09/18 21:07 by craigt