FromEncoding Function

Action

Converts a string, from the codepage that has been set by SetEncoding, to the ANSI string that is printable within the Silk Performer GUI.

Include file

Kernel.bdh

Syntax

FromEncoding( in sSource : string ) : string;

Return value

  • Converted string

Parameter Description
sSource Source string to be converted.

Example

dcltrans
  transaction TMain
  var
    sResult : string;
  begin
    SetEncoding("UTF-8");
    WebPageUrl("http://testsite.company.com.cn");
    WebParseHtmlBound(sResult, STRING_COMPLETE, "Home", "Street");
    WebPageLink(ToEncoding("画像"), "画像 - Company  検索");
    writeln(FromEncoding(sResult));
  end TMain;