ToUnicode Function

Action

Converts ANSI string representation into a unicode escape sequence of type \uxxxx.

Include file

Kernel.bdh

Syntax

ToUnicode( 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 := ToUnicode("AaBbCc");
    Print(sConverted); // "\u0061\0041\0062\u0042\u0063\u0043"

  end TMain;