ToUTF8 Function

Action

Converts an ANSI string representation into a UTF8-encoded byte sequence.

Include file

Kernel.bdh

Syntax

ToUTF8( in sSource : string ) : string;

Return value

  • Converted string

Parameter Description
sSource Source string to be converted.

Example

dcltrans
  transaction TMain
  var
    sResult : string;
  begin
    WebPageUrl("http://testsite.company.com.cn");
    WebParseHtmlBound(sResult, STRING_COMPLETE, "Home", "Street");
    WebPageLink(ToUTF8("ÄÄ/ÜÖÖÜ"), "eBay");
    writeln(FromUTF8(sResult));
  end TMain;