Sign in Join
FPDoc Onlineexperiment

UTF8Encode function

In unit System

Convert a widestring or unicodestring to an UTF-8 encoded ansistring.

Declaration

pascal
function UTF8Encode(const s: RawByteString): RawByteString

Description

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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.