Function Reference


_HexToString

Convert a hex string to a string

#include <String.au3>
_HexToString ( $sHex )

Parameters

$sHex A hexadecimal string

Return Value

Success: a string.
Failure: an empty string and sets the @error flag to non-zero.

Related

_StringToHex

Example

#include <MsgBoxConstants.au3>
#include <String.au3>

Local $sString = "This is a sample string"
Local $sHex = _StringToHex($sString) ; Convert the string to a hex string.
MsgBox($MB_SYSTEMMODAL, "", "Original String: " & $sString & @CRLF & " Hex: " & $sHex)

$sString = _HexToString($sHex) ; Convert the hex string back to the original string.
MsgBox($MB_SYSTEMMODAL, "", "Original Hex: " & $sHex & @CRLF & "String: " & $sString)