[Bug]: Cannot view string containing ASCII Unit Separator CHAR(31) as text · Issue #4193 · sqlitebrowser/sqlitebrowser · GitHub
Skip to content

[Bug]: Cannot view string containing ASCII Unit Separator CHAR(31) as text #4193

Closed as not planned

Description

@audiomuze

What did you do?

select "John"|| CHAR(31) || "Mary"; 

What did you expect to see?

Image

What did you see instead?

ImageImage

There does not seem to be a way to force display of the value. Whilst field stuffing is not recommended for relational databases in this case I'm using SQLite as an interim store (and records must be visible to the human eye) before being transformed to parquet. Whilst I could store multi-value columns as JSON it significantly slows the ingestion pipeline compared with a delimited string.

I tried many other combinations of delimiter, but the only one that's not present in the source data is CHAR(31) and given it's the ASCII Unit Separator, I thought it most approptiate to use,

DB4S Version

3.13.1

What OS are you seeing the problem on?

Linux

OS version

Arch Linux

Relevant log output

N/A

Prevention against duplicate issues

  • I have searched for similar issues

Activity

  1. mgrojo commented on Oct 22, 2026

    @mgrojo
    Member

    Hi @audiomuze. Chr(31) is a control character, not a printable character, so it doesn't make sense to display it as text. As alternative, you can use the hexadecimal editor, which contains a text display for ASCII printable characters (non-printable charactes are shown as .:

    Image

    If you want the value to be displayed in the table browser, you can use a display format:

    replace("Field4", CHAR(31), '|')

    But in that case, you want be able to update the field from the browser; you'll have to use SQL sentences.

    Sorry, but I don't see a reason to treat this control character different to any other that is not printable, so I'll close this as "won't fix". Feel free to answer, the conversation won't be blocked.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions