[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

UnicodeToUTF8

Encodes the given code point as an UTF-8 sequence of 1 to 4 bytes.

Declaration

Source position: lazutf8.pas line 90

function UnicodeToUTF8(

  CodePoint: Cardinal

):string;

function UnicodeToUTF8(

  CodePoint: Cardinal;

  Buf: PChar

):Integer;

Description

It does not add a #0. The code point is not encoded, aka in UTF32.

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