Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

DefaultSystemCodePage

Current system codepage.

Declaration

Source position: systemh.inc line 845

var DefaultSystemCodePage: TSystemCodePage;

Description

DefaultSystemCodePage is used to determine how CP_ACP is interpreted; it is what the program considers to be the current system codepage.

It is initialized to the default system codepage.

The DefaultSystemCodePage value may be set using SetMultiByteConversionCodePage. That means that it is not a good idea to use its value to determine the real OS "default system code page".

Note that if you change DefaultSystemCodePage, you should call TEncoding.FreeEncodings to free the encodings that were created. They will be recreated with the correct (new) DefaultSystemCodePage.

See also

DefaultUnicodeCodePage

  

Code page for new unicode strings.

DefaultFileSystemCodePage

  

Codepage to use for filenames.

DefaultRTLFileSystemCodePage

  

Code page in which to return system-returned filenames.


Documentation generated on: Jul 24 2023