Sign in Join
FPDoc Onlineexperiment

UTF8ToUTF8BOM function

In unit LConvEncoding

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

Declaration

pascal
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

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