API:System.SysUtils.TUnicodeEncoding
Delphi
TUnicodeEncoding = class(TEncoding)
C++
class PASCALIMPLEMENTATION TUnicodeEncoding : public TEncoding
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.
System.SysUtils.TUnicodeEncoding inherits from System.SysUtils.TEncoding. All content below this line refers to System.SysUtils.TEncoding.
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.
There are similarities between the System.SysUtils.TEncoding class and the .NET System.Text.Encoding class (described at Encoding (MSDN)).
Encoding | Class |
---|---|
ANSI |
|
ASCII |
|
Big-endian UTF-16, Big-endian Unicode |
|
UTF-16, Unicode |
|
UTF-7 |
|
UTF-8 |