Unicode CSV handoff exercise, 10 November 2026

Fictional manually supplied text, not a Nativ translation result or customer file.
No native Excel session was performed for the published guide. Test your own
Excel version and final receiving system before using this process in production.

reference.csv: comma-separated UTF-8, no BOM; 3 records and 4 columns.
utf8-bom.csv: the identical records with a UTF-8 BOM.
damaged.csv: first Arabic phrase deliberately replaced by question marks.
compare_csv.py: Python 3 standard-library helper, read-only and network-free.

Try:
python3 compare_csv.py reference.csv utf8-bom.csv
Expected: MATCH: 3 records, 4 columns

python3 compare_csv.py reference.csv damaged.csv
Expected: failure, record 1, column 3 (text): value changed

For an Excel round trip, import reference.csv with explicit UTF-8 and comma
settings, preserve IDs as text, and export a new comma-separated UTF-8 file.
Compare that saved copy against reference.csv. Do not replace the source.

The helper compares decoded values and their record order exactly, tolerating
only the optional leading BOM and CSV serialization differences such as quote
style and record terminators. It rejects malformed records, non-UTF-8 input and
Unicode replacement characters. A legitimate question mark is not automatically
an error; changes relative to the reference are what trigger a mismatch.

It cannot infer an unknown encoding, recover lost letters, render bidirectional
text, judge translation, validate formulas or certify a platform import. It does
not interpret formulas or create Excel files. The supplied exercise is inert
text. Keep the original workbook for formatting, reading direction and sheets.

Only use exact equality where it matches your delivery contract. A newly
translated target column should not be expected to equal its source language.
