System.WideStrUtils.sUTF8BOMString

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

sUTF8BOMString: array[1..3] of AnsiChar = (AnsiChar(#$EF), AnsiChar(#$BB), AnsiChar(#$BF));

C++

extern DELPHI_PACKAGE System::StaticArray<char, 3> sUTF8BOMString;

Propriétés

Type Visibilité  Source Unité  Parent
const
variable
public
System.WideStrUtils.pas
System.WideStrUtils.hpp
System.WideStrUtils System.WideStrUtils

Description

Représente le BOM (byte-order mark) UTF-8.

sUTF8BOMString est un tableau à 3 octets qui représente le BOM (byte-order mark) UTF-8. Le BOM est utilisé pour détecter si un texte donné est encodé en UTF-8.

Pour vérifier manuellement si un texte donné est encodé en UTF-8, vérifiez si les trois premiers octets correspondent à ceux définis par la constante sUTF8BOMString.

Voir aussi