| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Convert a widestring or unicodestring to an UTF-8 encoded ansistring
Source position: ustringh.inc line 138
function UTF8Encode(  | 
const s: RawByteString  | 
):RawByteString;  | 
const s: UnicodeString  | 
):RawByteString;  | 
const s: WideString  | 
UTF8Encode converts an ansistring or widestring S to the equivalent UTF-8 encoded Unicode string and returns this resulting string. It calls the low-level UnicodeToUTF8 function to do the actual work.
The resulting string has code page CP_UTF8.
  | 
Convert an UTF-8 encoded ansistring to a unicodestring  | 
|
  | 
Convert a UTF-8 encoded Unicode string to an ansistring  | 
|
  | 
||
  | 
Set the widestring manager  |