Sign in Join
FPDoc Onlineexperiment

TEncoding.GetEncoding function

Member of TEncodingpublicIn unit sysutils

Get an encoding instance for a given codepage.

Declaration

pascal
class function GetEncoding(CodePage: Integer): TEncoding; overload
 ; static
class function GetEncoding(const EncodingName: UnicodeString)
: TEncoding; overload; static

Description

GetEncoding will return an instance of TEncoding for the given codepage CodePage. The codepage can also be specified by name EncodingName. The returned instance is an appropriate descendent of TEncoding and needs to be freed by the caller.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.