-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Details for the issue
What did you do?
Selected a database cell classified as a "blob"
What did you expect to see?
binary and ascii dump Everything is grayed-out, perhaps because the DB is open Read-Only.
What did you see instead?
only leftmost 2 chars of ascii dump
No horizontal scrollbars.
It is also mildly annoy that the single G1 character ('E4'), which is a valid Latin-1 graphic character suffices to make this text look like a blob.
E4 is "small a dieresis or umlaut"
The binary test should require C0 or C1 control characters; G1 graphics are not an indication of binary data.
For ISO standard (non-MS) text:
The C0 range is 0x00 - 0x1F (Text can be expected to have some of these:
09 - ht, 0a - lf, 0b - vt, 0c - ff, 0d - cr, and in some cases, 1b -esc and 1a (^z)
The C1 range is 0x80 - 0x9F none of which are common in ANSI text. (Windows, however does many of these for graphics.)
The G0 range is 0x20 - 0x7e (7f is DEL).
The G1 range is 0xA0 - 0xFF.
I would say that a field is "binary" if it has any bytes in the C0 set (except as noted) or any of the C1 set.
Some might disagree because of the Microsoft usage.
A very common (and simple) test for "binary" is the presence of a 0 (NUL) byte. It's not foolproof - a slightly enhanced version is if 0 bytes constitute more than a small (say, 10) percentage of the data - in text structures, 0 tends to be a terminator....
The latter test is probably the best choice here... it's simple, effective, and avoids the Microsoft issue.
(I might mention byte order marks and other Unicode indicators, but this note is already too long.)
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
- [xc ] Windows: ( _version:_10 pro ___ )
- Linux: ( distro: ___ )
- Mac OS: ( version: ___ )
- Other: ___
What is your DB4S version?
- 3.10.1
- 3.10.0
- 3.9.1
- [x ] Other: _3.10.99 5-Jul
Did you also
- [x ] Try out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds
- Search for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20
