DHEX( ) function

Converts a Unicode string to a hexadecimal string.

Note

This function is specific to the Unicode edition of ACL. It is not a supported function in the non-Unicode edition.

Syntax

DHEX(field)

Parameters

field

Character. The Unicode string to convert to a hexadecimal string. The string must be enclosed in quotation marks.

Output

Character.

Remarks

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 parameter, and includes the digits between 0 and 9 and letters between A and F that make up the hexadecimal values.

DHEX( ) is the inverse of the HTOU( ) function, which converts a hexadecimal string to a Unicode string.

Example

Example Return value

DHEX("ABC123")

004100420043003100320033

Related reference
HTOU( ) function


(C) 2013 ACL Services Ltd. All Rights Reserved. | Send feedback