System.WideStrUtils.IsUTF8String
Delphi
function IsUTF8String(const s: RawByteString): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsUTF8String(const System::RawByteString s);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Detects if a given string is UTF-8 encoded.
Call IsUTF8String to detect if a given string is UTF-8 encoded.
Note: IsUTF8String does not guarantee that the string is UTF-8 encoded. IsUTF8String attempts to determine the encoding by checking the characters present in the string.