FromUnicode Function

Action

Converts all unicode escape sequences of type \uxxxx from string into corresponding characters.

Include file

Kernel.bdh

Syntax

FromUnicode( in sSource : string ): string;

Return value

  • converted string
Parameter Description
sSource

Source string to be converted.

Example

dcltrans
  transaction TMain
  var
    sConverted : string;
  begin

    sConverted := FromUnicode("\u0061\0041\0062\u0042\u0063\u0043");
    Print(sConverted); // "AaBbCc"

  end TMain;