You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show invisible and non-printable characters in the data grid and cell viewer #2530
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.
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
Activity
[-]Show invisible and non-printable characters[/-][+]Show invisible and non-printable characters in the data grid and cell viewer[/+]