Story #46 Unicode · Character Encoding · End-to-End Data Integrity

The Name That Changed Between the API and the Archive

"The supplier name looked fine in the API. It became question marks in the archive"

A supplier platform stored UTF-8 text in its primary database but a downstream archival service used legacy encoding. Names with accented or non-Latin characters were corrupted during export. The original API response looked correct—the corruption appeared only after the asynchronous archive pipeline ran.

What happened

A supplier platform handled company names and contact details from organizations around the world. The API accepted UTF-8 JSON, but a downstream archival service used a legacy encoding configuration. Some names containing accented characters, Turkish dotted and dotless I, or non-Latin scripts were replaced with question marks during export.

The original API response looked correct because the primary database stored UTF-8 text. The corruption appeared only when records were transferred through an asynchronous archive pipeline. Search and reconciliation later failed because the archived company name no longer matched the source record.

The organization had tested ASCII-only names and ordinary Latin text. It had not tested round trips across the database, queue, export service, and archive. It also compared composed and decomposed Unicode strings inconsistently, producing duplicate-looking supplier records.

Root cause

Different components applied incompatible character encodings and normalization assumptions. Test data did not represent multilingual input or exercise the complete data path.

The fix

The team standardized UTF-8 across service boundaries, defined normalization rules for identifiers and comparisons, and added round-trip tests using representative Unicode characters. Byte-length and character-length limits were tested separately.

Testing gaps and preventive tests

Unicode round trips, composed and decomposed normalization tests, encoding-header checks, and byte-versus-character boundary tests. Supporting international names requires consistent encoding throughout the entire integration chain.

Business impact

Supplier records became difficult to reconcile and some international names were corrupted in long-term records.

Lesson learned

Text is data. Supporting international names requires consistent encoding throughout the entire integration chain.

The Name That Changed Between the API and the Archive