Show: Delphi
C++
Display Preferences
System.SysUtils.TEncoding
From XE2 API Documentation
Delphi
TEncoding = class
C++
class PASCALIMPLEMENTATION TEncoding : public System::TObject
Contents |
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
System.SysUtils.TEncoding defines a specific encoding for a character or a string.
Use this class to define a specific encoding desired for a given string. For instance, the System.Classes.TStringStream class now includes an overloaded constructor that enables the developer to define encoding for strings that will be added to an instance of System.Classes.TStringStream.
To simplify cross-platform development, there are similarities between the System.SysUtils.TEncoding class and the .NET System.Text.Encoding class.
| Encoding | Class |
|---|---|
|
ANSI |
|
|
ASCII |
|
|
Big-endian UTF-16, Big-endian Unicode |
|
|
UTF-16, Unicode |
|
|
UTF-7 |
|
|
UTF-8 |