Skip to content

Show invisible and non-printable characters in the data grid and cell viewer #2530

Closed

Description

@datlechin

Problem

A value holding a zero-width space, a non-breaking space, a BOM or a stray \r renders identically to a clean one in the data grid. A row that will not match a WHERE clause looks exactly right, and the cause is invisible in the inspector's text fields too.

The SQL editor already solves this. Since #2724, Show invisible characters in Settings > Editor marks control, zero-width, formatting and bidi characters as boxed short names (BS, ZWSP, BOM, RLO) and outlines special spaces, and Query > Remove Invisible Characters cleans a query (features/sql-editor.mdx, Invisible characters). The JSON cell editor uses the same marks (apple/TablePro/Views/Results/JSONCodeEditor.swift:78). The grid cells and the plain text fields of the inspector and cell viewer do not, and no viewer shows a value's length in bytes beside its length in characters.

Proposed solution

  • Draw the same marks the SQL editor draws, in the grid cells and in the inspector's and cell viewer's text fields, under the existing Show invisible characters setting or a matching one under Settings > Data.
  • Cover the ones that actually cause this: zero-width space and joiner, non-breaking space, BOM, soft hyphen, bidi controls, and lone \r.
  • Show a byte count beside the character count in the cell viewer, so a mismatch is visible without turning the option on.
  • A warning in the cell viewer when a value holds a bidi control, since those can reorder what is displayed.
  • Keep the grid's cost: marks are decided when a cell is drawn, never by scanning the whole result.

Done means a cell holding abc followed by U+200B shows a ZWSP mark in the grid, and its cell viewer reads 4 characters, 6 bytes.

Alternatives considered

SELECT hex(col) to see what is really there.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. changed the title [-]Show invisible and non-printable characters[/-] [+]Show invisible and non-printable characters in the data grid and cell viewer[/+] on Oct 19, 2026
  3. added
    platform-macos
    on Oct 19, 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

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions