FM-047 API Interoperability and Operational Behavior

Character Encoding and Unicode Handling Failures

Non-ASCII characters, Unicode normalization, or encoding mismatches corrupt names, addresses, and international text as data moves between systems.

Failure explanation

An API corrupts, rejects, or inconsistently normalizes text containing non-ASCII characters. Causes include incorrect character encodings, double encoding, truncation by byte count rather than character count, database collation issues, and inconsistent Unicode normalization. This affects names, addresses, international product data, and identifiers.

Example

A customer named Çağrı is submitted as UTF-8 but stored or returned using an incompatible encoding, producing replacement characters or corrupted text. A visually identical composed and decomposed Unicode string may also compare as different values.

How to test

  • Test accented Latin characters, Turkish dotted/dotless I, CJK text, emoji, combining marks, and normalization forms.
  • Round-trip through API, database, queue, and response.
  • Test character and byte length limits separately.
  • Verify declared charset and consistent UTF-8 handling.

Expected behavior

Supported Unicode text is preserved consistently through the full data path, and length/normalization rules are explicit. Identifiers and comparisons use a documented normalization policy.

Runnable examples

Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.