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
| Parameter | Description |
|---|---|
| String | Hexadecimal string that should be converted to UTF-8. |
Return Codes
The script function returns 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: