FromUTF8 Function

Action

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

Include file

Kernel.bdh

Syntax

FromUTF8( 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;