System.SysUtils.TUTF8Encoding.GetPreamble

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetPreamble: TBytes; override;

C++

virtual System::DynamicArray<System::Byte> __fastcall GetPreamble(void);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TUTF8Encoding

Description

Returns the UTF-8 preamble in a byte array.

In the TUTF8Encoding class, GetPreamble returns the UTF-8 BOM (byte-order mark). GetPreamble returns a 3 byte array that represents the UTF-8 byte-order mark that is later used to detect whether a given text is UTF-8 encoded.

See Also