Delphi XE doesn't have TEncoding.ANSI, but it does have:

Delphi XE doesn't have TEncoding.ANSI, but it does have:

class function GetEncoding(CodePage: Integer): TEncoding; overload; static;
class function GetEncoding(const EncodingName: string): TEncoding; overload; static;

Can I get the equivalent of TEncoding.ANSI with

TEncoding.GetEncoding(CP_ACP);

?

Comments