[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

TEncoding.GetEncoding

Get an encoding instance for a given codepage.

Declaration

Source position: sysencodingh.inc line 79

public class function TEncoding.GetEncoding(

  CodePage: Integer

):TEncoding; overload;

class function TEncoding.GetEncoding(

  const EncodingName: UnicodeString

):TEncoding; overload;

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

TUnicodeEncoding

  

UTF-16 unicode encoding

TBigEndianUnicodeEncoding

  

Big-endian UTF-16 unicode encoding

TUTF8Encoding

  

UTF-8 unicode encoding

TUTF7Encoding

  

UTF-7 unicode encoding

TMBCSEncoding

  

Multi-Byte character set encoding


Documentation generated on: Mar 17 2017