Skip to content

Each XML part of the generated documents has a BOM prefix #309

@elkinmilen

Description

@elkinmilen

Description

Cannot generate document without BOM sequence prefix on every part of the document.
Some viewers throw an error and do not open the document because of this. When first opened and saved with MS Excel the BOM sequences for each part gets removed.

Information

  • .NET Target: any
  • DocumentFormat.OpenXml Version: (ie 2.7.2)

Repro

Generate basic Excel document. Change the extension of the generated document to ZIP. Open the ZIP archive. Open an XML file inside into a HEX editor of choice.

Observed

The file contents start with EF BB BF (or BOM) and you cannot avoid that.

Expected

No BOM sequence or a setting in the API to omit it.

bom

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions