System.WideStrUtils.DetectUTF8Encoding
Delphi
function DetectUTF8Encoding(const s: RawByteString): TEncodeType;
C++
extern DELPHI_PACKAGE TEncodeType __fastcall DetectUTF8Encoding(const System::RawByteString s);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Detects the encoding of a given RawByteString.
Call DetectUTF8Encoding to detect if a given System.RawByteString is UTF-8, ASCII, or ANSI encoded.
Note: DetectUTF8Encoding does not guarantee that the detected encoding is correct. DetectUTF8Encoding attempts to identify the encoding by checking the characters present in the string.