HEX_2_STRING
The HEX_2_STRING script function allows you to convert strings in hexadecimal notation to UTF-8. For example, "4175746F6D6963" converted to UTF-8 would be "Automic". This script function is especially useful for non-printable characters such as CR (carriage return), LF (line feed), TAB (tabulator), etc.), or any combination of printable and non-printable characters.
Syntax
HEX_2_STRING (String)
Parameters
-
HEX_2_STRING
Converts hexadecimal notation to UTF-8 -
String
Hexadecimal string that shouldbe converted to UTF-8
Return code: The converted string.
Examples
The following example shows how you can separate two words with a TAB:
Date<TAB>Time
:SET &HEADER# = HEX_2_STRING("446174650954696D65")
:P &HEADER#
The following example derives CR and LF as single characters:
:SET &cr# = HEX_2_STRING("0D")
:SET &lf# = HEX_2_STRING("0A")
See also: