System.WideStrUtils.DetectUTF8Encoding
Delphi
function DetectUTF8Encoding(const s: RawByteString): TEncodeType;
C++
extern DELPHI_PACKAGE TEncodeType __fastcall DetectUTF8Encoding(const System::RawByteString s);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Détecte l'encodage d'un WideString donné.
Appelez DetectUTF8Encoding pour détecter si un System.RawByteString donné est encodé en UTF-8, ASCII ou ANSI.
Remarque : DetectUTF8Encoding ne garantit pas que l'encodage détecté est correct. DetectUTF8Encoding tente d'identifier l'encodage en vérifiant les caractères présents dans la chaîne.