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

UTF8ToUTF8BOM

Converts a string from UTF-8 encoding to UTF-8 with a Byte Order Mark.

Declaration

Source position: lconvencoding.pas line 168

function UTF8ToUTF8BOM(

  const s: string

):string;

Arguments

s

  

UTF8-encoded string value updated in the routine.

Function result

UTF-8-encoded string value after the BOM is inserted at the beginning of the string.

Description

UTF8ToUTF8BOM simply prepends the byte values in UTF8BOM to the value passed in the s argument. No actual encoding conversion is required. The return value contains the concatenated values.

See also

UTF8BOM

  

ANSI representation for the UTF-8 Byte Order Mark.


Version 3.2 Generated 2024-02-25 Home