RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.UTF8Encode Function

Converts a WideString value to a UTF8 string.

Pascal
function UTF8Encode(const WS: WideString): UTF8String;
C++
UTF8String UTF8Encode(const BSTR WS);

System

Call Utf8Encode to convert a Unicode string to UTF-8. WS is the Unicode string to convert. Utf8Encode returns the corresponding UTF-8 string. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!