System.WideStrUtils.sUTF8BOMString
Delphi
sUTF8BOMString: array[1..3] of AnsiChar = (AnsiChar(#$EF), AnsiChar(#$BB), AnsiChar(#$BF));
C++
extern DELPHI_PACKAGE System::StaticArray<char, 3> sUTF8BOMString;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
const variable |
public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Represents the UTF-8 byte-order mark.
sUTF8BOMString is a 3 byte array that represents the UTF-8 byte-order mark. The byte-order mark is used to detect if a given text is UTF-8 encoded.
To manually check if a given text is UTF-8 encoded, check whether the first 3 bytes match the ones defined by sUTF8BOMString constant.