insanum / sncli

Simplenote CLI
MIT License
396 stars 34 forks source link

Little UTF8 display issue #55

Open J-F-M opened 6 years ago

J-F-M commented 6 years ago

UTF-8 support in the content (notes) is fine, this is just about the display in urwid, so I'm not sure this really is a cncli bug.

Using Terminal.app or iTerm2.app on Mac OS, accented characters display as ? in the index or pager views (to clarify, they're fine when opening for editing in vim, and notes created in sncli with accented characters are also fine in other SN clients, it really is just about the display).

E.g. éàèù

samuelallan72 commented 6 years ago

Hmm yeah this sounds more like a bug in urwid or something configured differently in the terminal apps themselves. I can't reproduce the problem on my linux machine, and I don't have access to a Mac OS system to test it myself (help wanted!).

Also to help, could you provide some more information, such as sncli version, urwid version, python version, screenshot of the problem, and any encoding related configuration on your system and the terminal apps.

J-F-M commented 6 years ago

Screenshot 1: sncli displaying question marks instead of accented UTF8 characters: sncli_1

Screenshot 2: vim displays the characters properly and identifies the file encoding as UTF-8 sncli_2

(Not shown: Android SN client displays the accented characters properly)

Configuration: