RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.IsUTF8String Function

Detects if a given string is UTF-8 encoded.

Pascal
function IsUTF8String(const s: RawByteString): Boolean;
C++
Boolean IsUTF8String(const RawByteString s);

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!