Core Function Hex2Str

From Sputnik Wiki
Jump to: navigation, search
Hex2Str( <expression>, <flag> )

Contents

Description

Convert a hex string back to a normal string.

Parameters

expression

The string to use.

flag

Optional; If TRUE conversion will be in UNICODE.

Default: false

Return Value

Success: Returns decoded string.

Failure: Returns empty string.

Remarks

None.

Example

// ASCII
$Hex = Str2Hex("Hello World");
println("Hex: '$Hex'");
$Str = Hex2Str($Hex);
println("Str: '$Str'");
 
// Unicode
$Hex = Str2Hex("Hello World", 1);
println("Hex: '$Hex'");
$Str = Hex2Str($Hex, 1);
println("Str: '$Str'");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox