ckampfe / russ

A TUI RSS reader with vim-like controls and a local-first, offline-first focus
GNU Affero General Public License v3.0
173 stars 18 forks source link

[BUG] invisible unicode/garbage characters mess up rendering #40

Open ckampfe opened 3 months ago

ckampfe commented 3 months ago

Is there an existing issue for this?

OS

{"label"=>"Macos"}

Current Behavior

Sometimes titles/entries include unrenderable/unprintable characters that mess up rendering

Expected Behavior

Rendering is not messed up

Steps To Reproduce

No response

Anything else?

Screenshot 2024-08-13 at 10 56 33
Screenshot 2024-08-13 at 10 56 28
Screenshot 2024-08-13 at 10 56 22
ckampfe commented 3 months ago

Isolating an example row:

sqlite3 ck.db "select id, title from entries where id = 13510 order by inserted_at desc limit 40;" > out.bin

And showing the hexdump of it:

at [ 22:49:31 ] ➜ hexyl out.bin
Screenshot 2024-08-13 at 11 00 56

Note the number of space and/or nonrenderable bytes before Constant and between Constant and s.