System.SetCodePage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetCodePage(var S: _RawByteStr; CodePage: Word; Convert: Boolean);

C++

extern DELPHI_PACKAGE void __fastcall SetCodePage(RawByteString &S, Word CodePage, bool Convert = true);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
System.hpp
System System

Description

Sets the code page for a RawByteString type variable.

Call the SetCodePage routine to set the code page for a RawByteString type variable.

The optional Convert parameter determines whether the payload of the string is converted to the given code page:

  • If the Convert parameter is False, then only the code page for the string is altered.
  • If the Convert parameter is True, then the payload of the passed string is converted to the given code page.

See Also