Shample Intel
Menu
Catalog quality guide

Keep an invisible BOM out of the UPC header

Round-trip a real BOM-prefixed synthetic CSV, verify the recognized UPC field and understand what the export BOM does not guarantee.

File formatsUpdated Guide slug: utf8-bom-catalog-headers

The issue to look for

A byte-order mark at the beginning of a UTF-8 CSV is invisible in most editors. A naive parser may include it in the first header and fail to recognize UPC.

What this check can tell you

The downloadable fixture really starts with UTF-8 BOM bytes. The tested output recognizes UPC, and the cleaned export deliberately includes its own UTF-8 BOM.

A transparent review

  1. Download the BOM-prefixed practice file without opening and resaving it in a spreadsheet.
  2. Run it through the cleaner and verify that the first header is UPC, not an unexpected variation.
  3. Export the result and inspect the raw bytes or re-import it through the shared parser.
  4. Use a text-aware spreadsheet import even when the exported encoding is recognized correctly.

How to read the result

  • A BOM is an encoding signal, not part of an identifier or a promise about data types. Removing it from header interpretation is different from stripping leading zeros from values.
  • The current CSV export uses UTF-8, CRLF record separators, quoted cells and a BOM. Standard non-white-label download packages may also include a separate attribution README; it is not an extra inventory record.

Limits to keep in view

  • BOM handling does not imply UTF-16 support.
  • The parser rejects binary/control-character text rather than guessing a workbook.
  • A correctly decoded file may still contain invalid identifiers or duplicate rows.
Illustrative sample

Synthetic fixture: synthetic-utf8-bom.csv

This small synthetic example makes the transformation and observation visible. It is an educational illustration, not a claim that a supplier file or external registry was verified.

Fixture ID
utf8-bom
Published fixture reference
utf8-bom
Filename
synthetic-utf8-bom.csv
Encoding
UTF-8
Options
{"repairUpcs":true,"removeZeroStock":false,"removeZeroCost":false}

Input

UPC,SKU
012345678905,BOM-1

Output

{
  "checks": {
    "validIdentifiers": 1
  },
  "cleanedRows": [
    {
      "UPC": "012345678905",
      "SKU": "BOM-1"
    }
  ]
}

Observation: The UTF-8 BOM is removed from the first header. The cleaned download adds a UTF-8 BOM for compatible spreadsheet import.

Download synthetic fixture

Sources