DHEX( ) function
Converts a Unicode string to a hexadecimal string.
Note:
This function is specific to the Unicode edition of Analytics. It is not a supported function in the non-Unicode edition.
Syntax
DHEX(field)
Parameters
Name | Type | Description |
---|---|---|
field |
character |
The Unicode string to convert to a hexadecimal string. |
Output
Character.
Examples
Basic examples
Returns "004100420043003100320033":
DHEX("ABC123")
Remarks
How it works
DHEX( ) displays each double-byte character using big-endian format, with the most significant double-byte stored first.
Each character is represented by a four-character code. The output string is four times as long as the field value, and includes the digits between 0 and 9 and letters between A and F that make up the hexadecimal values.
Related functions
DHEX( ) is the inverse of the HTOU( ) function, which converts a hexadecimal string to a Unicode string.