EPUB | CHM | PDF

TPSQLDataset.Methods.Translate

Top Previous Next

Converts a data string between the ANSI character set used by Delphi (and Windows), and the local code page (OEM character set).

Syntax:

procedure Translate(Src, Dest: PChar; ToOem: Boolean); override;

Description:

When the ToOem parameter is True, Translate converts the source string from the ANSI character set to the OEM character set. If ToOem is False, Translate converts the source string from the OEM character set to the ANSI character set.

Before translation PostgresDAC components compares code page on server with the client's one automatically.