bom option prepend the byte order mark (BOM) to the output stream.
- Since: 5.4.0
- Related: see Available Options
The UTF-8 BOM is a sequence of Bytes at the start of a text-stream (
EF BB BF or
\ufeff) that allows the reader to reliably determine if file is being encoded in UTF-8.
Default is the boolean value
false. The bom example simply activates the option: