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
- Keep an untouched binary copy of the original export.
- Run the actual Windows-1252 fixture rather than copying the displayed code block into a UTF-8 editor.
- Compare the decoded description with the expected accented text and en dash.
- 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.
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.
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