ChrUnicodeToHex

Converts a Unicode string to a Hex string.

Syntax:

ChrUnicodeToHex( Unicode-string [,flag] )

Parameters:

(s) Unicode-string: specifies a Unicode string.

(i) flag: [optional] 0 (default), or 1 to reverse the order of each character byte pair in "Unicode-string" before adding it to the returned hex string.

Returns:

(s) hex string: a hex string, with four hex bytes per Unicode character.

Example:


unicodestr = ChrStringToUnicode("Hello",0)
hexstr = ChrUnicodeToHex(unicodestr,0)
Message("Hex String", hexstr)

See Also:

ChrHextoUnicode