UTF8ToUTF8BOM function
Converts a string from UTF-8 encoding to UTF-8 with a Byte Order Mark.
Declaration
function UTF8ToUTF8BOM(const s: string): stringArguments
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.
