Unit Langs

Classes

Functions

CharSetFromLocale -
CharToChar -
CharToWide - The proper solution is to use TranslateCharsetInfo.
CodePageFromLocale -
LanguageName -
OEMCodePageFromLocale -
Register -
WideToChar -

Types

TLangOption
TLanguage

Constants

Variables


Functions


function CharSetFromLocale(Language: TLanguage): TFontCharSet;


function CharToChar(const S: String; CP1, CP2: Word): String;


function CharToWide(const S: String; CodePage: Word): WideString;

The proper solution is to use TranslateCharsetInfo. This function is described to be exported from user32.dll, but this works only in Windows NT. In Windows 95 this function is absent. So...

function CodePageFromLocale(Language: TLanguage): Integer;


function LanguageName(Language: TLanguage): String;


function OEMCodePageFromLocale(Language: TLanguage): Integer;


procedure Register;


function WideToChar(const WS: WideString; CodePage: Word): String;


Types


TLangOption = (loLocalized, loEnglish, loNative, loAbbrev);

TLanguage = 0..$FFFF

Constants


Variables