System.SetCodePage
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
- RawByteString
- C++ Compiler Advanced (where to set the code page for a C++ application)
- Compiling (where to se the code page for a Delphi application)
- UnicodeString
- Delphi in a Unicode World Part I: What is Unicode, Why do you need it, and How do you work with it in Delphi?
- Delphi in a Unicode World Part II: New RTL Features and Classes to Support Unicode