Indy 9 | Content | Index | Reference

GetSystemLocale
See Also, Unit: IdGlobal
Retrieves the character set for the local computer system.

    function GetSystemLocale: TIdCharSet;

Unit
IdGlobal
Return Value
TIdCharset - Character set for the local computer system.
Description
GetSystemLocale is a TIdCharset function used to retrieve the character set for the local computer system. For the Windows platform, GetSystemLocale uses the SysLocale values for PriLangID and SubLangID to determine the character set in use. On Windows, GetSystemLocale will return the following:

- Chinese - csBig5 or csGB2312 when SubLangID is SUBLANG_CHINESE_SIMPLIFIED

- Japanese - csIso2022jp

- Korean - csEucKR

- Default - csIso88591

For the Linux platform, GetSystemLocale uses the GSystemLocal variable to determine the character set for the local computer system.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.