Internet Direct (Indy)
Home
PreviousUpNext
IdGetDefaultCharSet Function
Pascal
function IdGetDefaultCharSet: TIdCharSet;

TIdCharSet - Character set for the platform or operating system.

IdGetDefaultCharSet is a TIdCharSet function used to get the default character set for the platform or operating system hosting the Indy library. 

 

For the Windows platform, the primary language for the system locale is used to determine the return value for the method using the following: 

 

Primary Language 
Sub Language 
TIdCharSet Value 
LANG_CHINESE 
SUBLANG_CHINESE_SIMPLIFIED 
idcsGB2312 
LANG_CHINESE 
All Others 
idcsBig5 
LANG_JAPANESE 
 
idcsISO_2022_JP 
LANG_KOREAN 
 
idcscsEUCKR 
LANG_RUSSIAN 
 
idcsKOI8_R 
LANG_UKRAINIAN 
 
idcswindows_1251 
Default value 
 
idcsISO_8859_1 

 

 

For the .Net platform, the return value is the generic idcsUNICODE_1_1 encoding. 

 

For the Linux platform, the value in the GIdDefaultCharSet global variable is used as the return value for the function.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.