RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Utf8ToAnsi Function

Converts a UTF8 string to a string of Ansi characters.

Pascal
function Utf8ToAnsi(const S: RawByteString): string;
C++
AnsiString Utf8ToAnsi(const RawByteString S);

Call Utf8ToAnsi to convert a UTF-8 string to Ansi. S is a string encoded in UTF-8. Utf8ToAnsi returns the corresponding string that uses the Ansi character set. 

 

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