Sign in Join
FPDoc Onlineexperiment

SetCodePage procedure

In unit System

Set the codepage of a string.

Declaration

pascal
procedure SetCodePage(var s: RawByteString; CodePage: TSystemCodePage; 
 Convert: Boolean=True)

Description

SetCodePage sets the codepage of a string S to CodePage. If Convert is True then the string will be transcoded to the new codepage. The resulting string will have reference count 1.

Note that while you can set the codepage to CP_NONE, the result any operation on a string with that codepage is undefined.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.