Shample Intel
Menu
Catalog quality guide

Preserve café and en-dash characters from legacy text exports

Download a Windows-1252 byte fixture and reproduce the UTF-8 fallback while preserving original supplier description text.

File formatsUpdated Guide slug: windows-1252-catalog-encoding

The issue to look for

Legacy catalog exports may contain accented letters or typographic dashes encoded as Windows-1252. Treating those bytes as UTF-8 can produce replacement characters and unreadable descriptions.

What this check can tell you

Unlike a UTF-8 code block alone, the downloadable file contains actual E9 and 96 bytes. Its asserted output retains Café tray – small.

A transparent review

  1. Keep an untouched binary copy of the original export.
  2. Run the actual Windows-1252 fixture rather than copying the displayed code block into a UTF-8 editor.
  3. Compare the decoded description with the expected accented text and en dash.
  4. Export the cleaned result as UTF-8 and verify it before sharing with another system.

How to read the result

  • The parser first attempts strict UTF-8 decoding and falls back to Windows-1252 when that attempt fails. A fallback is a compatibility rule, not a universal encoding detector.
  • If a source was already decoded incorrectly and saved again, selecting another encoding may not reconstruct the original characters. Obtain a clean original when possible. Encoding recovery also cannot restore identifier digits lost in a spreadsheet.

Limits to keep in view

  • Not every legacy encoding is Windows-1252.
  • UTF-16 or binary-looking text is rejected.
  • A screenshot of correct text does not prove that the underlying bytes are preserved.
Illustrative sample

Synthetic fixture: synthetic-windows-1252.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
windows-1252
Published fixture reference
windows-1252
Filename
synthetic-windows-1252.csv
Encoding
Windows-1252
Options
{"repairUpcs":true,"removeZeroStock":false,"removeZeroCost":false}

Input

SKU,Description,Qty
ENC-1,Café tray – small,2

Output

{
  "checks": {
    "totalRows": 1,
    "invalidQuantities": 0
  },
  "cleanedRows": [
    {
      "SKU": "ENC-1",
      "Description": "Café tray – small",
      "Qty": "2"
    }
  ]
}

Observation: The actual downloadable fixture contains Windows-1252 bytes E9 and 96. UTF-8 decoding fails cleanly and the fallback retains café and the en dash.

Download synthetic fixture

Sources