RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEncoding.GetEncoding Method

Returns the encoding used for the code page supplied.

Pascal
class function GetEncoding(CodePage: Integer): TEncoding; static;
C++
static __fastcall TEncoding GetEncoding(int CodePage);

TEncoding.GetEncoding returns the preferred encoding for CodePage.  

CodePage must be a valid codepage identifier or one of the CP_XXX constants defined by the Windows API. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!