System.SysUtils.TEncoding

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTEncoding

Delphi

TEncoding = class

C++

class PASCALIMPLEMENTATION TEncoding : public System::TObject

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.

There are similarities between the System.SysUtils.TEncoding class and the .NET System.Text.Encoding class (described at Encoding (MSDN)).

Encoding Class

ANSI

System.SysUtils.TMBCSEncoding

ASCII

System.SysUtils.TMBCSEncoding

Big-endian UTF-16, Big-endian Unicode

System.SysUtils.TBigEndianUnicodeEncoding

UTF-16, Unicode

System.SysUtils.TUnicodeEncoding

UTF-7

System.SysUtils.TUTF7Encoding

UTF-8

System.SysUtils.TUTF8Encoding

See Also

Code Examples