Function to decode a string from UU format to plain text.

 

Syntax

function DecodeUU(sData: string): string;

 

Parameters and return values

Parameter

Type

Value

sData

string

source string.

 

Function result

Returns decoded string.

 

Example


const
  sMessage = 'Have a nice day!';
var
  s: string;
begin
  mLogScript('Original message: ' + sMessage, '');
  s := EncodeUU(sMessage);
  mLogScript(s, 'EncodeUU');
  mLogScript(DecodeUU(s), 'DecodeUU');
end.


Script work result

[00:05:50] (Log "DecodeUU"): Original message: Have a nice day!

[00:05:50] (Log "DecodeUU"): [EncodeUU] 02&%V92!A(&YI8V4@9&%Y(0

[00:05:50] (Log "DecodeUU"): [DecodeUU] Have a nice day!

[00:05:50] (Run "DecodeUU"): Script operation time: 10 ms

[00:05:50] (Run "DecodeUU"): Script done successfully.
 

See also

EncodeUU

mLogScript