Product SiteDocumentation Site

7.4.80. X2C (Hexadecimal to Character)


>>-X2C(hexstring)----------------------------------------------><

Returns a string, in character format, that represents hexstring converted to character. The returned string has half as many bytes as the original hexstring. hexstring can be of any length. If necessary, it is padded with a leading zero to make an even number of hexadecimal digits.
You can optionally include whitespace characters in hexstring (at byte boundaries only, not leading or trailing) to improve readability; they are ignored.
If hexstring is null, the function returns a null string.
Here are some examples:

Example 7.109. Builtin function X2C

X2C("4865 6c6c 6f") ->  "Hello"     /*  ASCII             */
X2C("3732 73")      ->  "72s"       /*  ASCII             */