Skip to content

getBOMBytes

getBOMBytes(encoding) → binary · XML

Get the BOM (Byte Order Mark) bytes for a given encoding. See Chapter 22.

  • encoding (required): encoding name (e.g., "UTF-8", "UTF-16LE")
utlx
{
  bom: getBOMBytes("UTF-8")
}

Released under AGPL-3.0.