GetEncoding Function

Action

Gets the name of the codepage that has been set.

Include file

Kernel.bdh

Syntax

GetEncoding( ): string;

Return value

  • Name of the codepage that is currently set.

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));
    writeln("http://testsite.company.com.cn has the codepage "  + GetEncoding() + " set");  
  end TMain;