Skip to content

Globe: Arabic/Hebrew 3270 Screens Render Backwards (Visual vs Logical BiDi) #3987

Closed

Description

@squid-protocol

Part of GitGalaxy Tours the Globe 🌍

The Defect

Modern web technologies (Java, HTML, JSON) use Logical Bidirectional (BiDi) Text, meaning Right-To-Left (RTL) languages like Arabic and Hebrew are stored in memory in reading order, and the UI engine flips them during rendering.

However, legacy 3270 'dumb terminals' had no text rendering engine. Mainframes stored RTL characters in Visual Order—exactly how they appeared on the screen, character by character from left to right.

The Impact

When cobol_to_java_screen_forge.py extracts an Arabic string from a VSAM file or BMS map and serves it through a generated Spring Boot API, the modern frontend (React/Angular) will render the text completely backwards, assuming it is logical text.

Required Action

When dbcs_page indicates an RTL language (e.g., Arabic cp420), CobolRecords must implement an IBM BiDi Layout Engine transformation during the fromBytes() load sequence to actively flip Visual EBCDIC into Logical Unicode.

Activity

  1. added
    data-integrity
    legacy-modernization
    on Sep 28, 2026
  2. added
    scope:frontier
    era:3
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-integrityera:3legacy-modernizationscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions