const unsigned int pugi::format_write_bom = 0x04

This flag determines if UTF-8 BOM is to be written to output stream.

This flag is off by default.