[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

UTF8Encode

Convert a UTF-8 encoded unicode string to a widestring

Declaration

Source position: line 0

function UTF8Encode(

  const s: Ansistring

):UTF8String;

function UTF8Encode(

  const s: UnicodeString

):UTF8String;

function UTF8Encode(

  const s: WideString

):UTF8String;

Description

UTF8Encode converts the UTF-8 encoded unicode string S to a widestring and returns the resulting string. It calls the low-level UnicodeToUTF8 function to do the actual work.

For this function to work, a widestring manager must be installed.

See also

UTF8Decode

  

Convert a widestring to a UTF-8 encoded unicode string

Utf8ToAnsi

  

Convert a UTF-8 encoded unicode string to an ansistring

UnicodeToUtf8

  

SetWideStringManager

  

Set the widestring manager

The latest version of this document can be found at lazarus-ccr.sourceforge.net.