Le059 — German umlauts in `PRODUCT.name` mis-decoded by reader (Latin-1/UTF-8 confusion)

§12.1a encoding/strings (sub-class: Ed.2 vs Ed.3 default-encoding mismatch on PRODUCT.name)

P1 — silent data loss

encoding

Sources

Sender

German-locale CAD authoring tools (Catia / NX / Solid Edge German installs) that emit Ed.2 STEP with raw ISO-8859-1 bytes for `PRODUCT.name` like `'Schrägverzahnt'`.

Description

A producer emits Ed.2-style STEP where `'ä'` appears as raw byte `0xE4` inside the string literal; schema-legal under the Ed.2 default of ISO-8859-1. The current reader assumes Ed.3 UTF-8, sees an isolated continuation byte, and either replaces with `?`, drops the character, or (in older builds) overruns into the next byte and corrupts the string. The producer's intent is preserved on disk; the receiver mangles it on import.

Reproducer recipe

`#100=PRODUCT('Schr\xe4gverzahnt','','',(#101));` — the bytes `0xE4` should decode to `ä` per Ed.2 default; UTF-8-only readers misinterpret.

Expected kernel behavior

heal-and-accept; inspect `FILE_DESCRIPTION`'s `implementation_level` and conformance class to determine edition; on Ed.2, decode high-bit bytes as ISO-8859-1; on Ed.3, decode as UTF-8 and reject isolated continuation bytes with `E_BAD_UTF8`.

Notes

**See also**: Le002, Le021. Synonyms: "bug in OCC with german letter", "umlaut in PRODUCT.name garbled", "ISO-8859-1 ä misread as UTF-8 by STEP reader", "high-bit byte mis-decoded in part name".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Le002, Le021

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Le059: German umlauts in PRODUCT.name mis-decoded by reader: Ed.2-style STEP with raw ISO-8859-1 bytes for umlauts; PRODUCT 'Schr\xe4gverzahnt' (Schraegverzahnt) carries raw byte 0xE4 (ä); UTF-8-only reader sees isolated continuation byte and garbles the string; heal: inspect FILE_DESCRIPTION implementation_level to determine edition; on Ed.2, decode high-bit bytes as ISO-8859-1; on Ed.3, reject isolated continuation bytes with E_BAD_UTF8; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le059'),'2;1');
5FILE_NAME('Le059.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=GEOMETRIC_CURVE_SET('',(#1));
12#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
13#9051=PRODUCT('Le059','Le059','',(#9050));
14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
16#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060);
24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
25#8997=PRODUCT('Schrägverzahnt','','',());
26#8998=PRODUCT('一中文','','',());
27#8999=PRODUCT('Größe','','',());
28
29ENDSEC;
30END-ISO-10303-21;