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


Current system codepage.


Source position: systemh.inc line 729

var DefaultSystemCodePage: TSystemCodePage = ;


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



Code page for new unicode strings



Codepage to use for filenames



Code page in which to return system-returned filenames

Documentation generated on: Jun 22 2020