QA Category 0881

QA Category 0881

Subject-line UTF-8 QA: test matrix draft

Test-case structure for encoding checks; internal build IDs still pending from QA logs.

By Meet

Subject-line encoding integrity: test-case structure

This issue documents the test-case structure for subject-line UTF-8 and emoji rendering across Outlook desktop, Outlook web, Gmail web, and Apple Mail. The encoding mechanics and known client quirks below are drawn from external sources only.

Scope note: the per-client pass/fail glyph results, the truncation observations, and the deployment build IDs from the 2026-12-02 staging push are not present in any external source. Those values must be populated from our own QA logs before this matrix is considered complete. Fields awaiting internal data are marked TBD.

Boundary note: the editor cites a 78-character boundary, but no source supports 78. The sourced limits are the RFC 2047 75-character encoded-word limit and a roughly 65-character threshold tied to a specific double-encoding bug. Confirm internally which boundary the truncation tests target.

Input byte sequences to map (input to rendered output)

  • Multi-byte UTF-8: e as Quoted-Printable =C3=A9, with the corruption case Gruess Gott arriving as Gr??ss Gott when encoding is mishandled ([1]).
  • 4-byte emoji: code point only is transmitted and the device supplies the artwork, so recent emoji may render as a box or question mark on older OSes ([2]).
  • Combining and sequence cases: ZWJ family/profession sequences may split into separate glyphs, skin-tone modifiers may show a base emoji plus a colour square, and Windows desktop shows letters instead of flag emoji ([2]).
  • Invisible characters to grep via xxd: BOM U+FEFF = EF BB BF, non-breaking space U+00A0 = C2 A0, zero-width space U+200B = E2 80 8B, ZWJ U+200D = E2 80 8D, RLO U+202E = E2 80 AE ([3]).

Per-client expected baseline (pass/fail to confirm in staging)

  • Apple Mail (iOS 10+): emoji expected to display correctly; TBD confirm against staging build.
  • Gmail web: emoji expected to display correctly; TBD confirm against staging build.
  • Outlook web and Outlook on Windows 10+: emoji expected to display correctly; TBD confirm against staging build.
  • Outlook versions prior to 2018: emoji expected to render as question marks or squares ([4]).

Encoded-word and charset failure modes

Non-ASCII subjects are wrapped in an RFC 2047 encoded word, for example =?UTF-8?B?...?= which decodes to an emoji followed by text. Failures appear when code builds the header by hand, truncates mid multi-byte character, or sets the wrong charset, producing replacement characters or question marks. Verify the raw header after each send ([2]).

Gateways and legacy webmail parsing with older charsets such as ISO-8859-1 fall back to a square, box, or question-mark placeholder, since that charset supports only the first 256 Unicode characters ([4]). Observed client defects to include as rows: Telstra left a space for a registration mark and emoji, and Outlook 2010 rendered a registration mark as (R) once sent ([5]).

Double-encoding trace (PHPMailer issue #2115)

A pre-encoded UTF-8 subject was re-encoded as US-ASCII, producing garbled output beginning =?us-ascii?Q?=3D=3FUTF-8...?=. The reporter noted the subject exceeding roughly 65 characters triggered the US-ASCII encoding. The maintainer could not reproduce in a clean library build; a correct send produced a valid =?UTF-8?B?...?= header and longer strings folded into multiple valid lines, and the fault was traced to an older wrapping layer.

Test lesson: when garbling appears, inspect the raw header and check the wrapping layer, not only the mail library ([6]).

Required columns and checks per test case

  • Input bytes, decoded code point, and expected glyph for each row.
  • Rendered output and pass/fail per client: Outlook desktop, Outlook web, Gmail web, Apple Mail (TBD from staging logs).
  • Truncation observation at the confirmed boundary, inspected in both inbox list and opened views ([2]).
  • Raw-header inspection for correct encoded-word formatting and no stray invisible bytes.
  • Accessibility row: screen reader announces emoji by official name, for example party popper or rocket ([2]).
  • Deployment build ID from the 2026-12-02 staging push (TBD from internal logs).

Enter per-client pass/fail data, truncation notes, and the 2026-12-02 build ID to replace the TBD fields.

Log staging results

Content-encoding reference for the matrix

Quoted-Printable encodes extended characters as = plus two hex digits, for example =C3=A9 for e. Base64 uses the 64-character set with padding and increases message size by about 33 percent. RFC 5322 allows up to 998 bytes per header line, and each invisible character consumes 2 to 4 UTF-8 bytes, so BOM and zero-width characters count against the budget ([1], [3]).

Sources