qw3rtty / neix

neix - a RSS/Atom feed reader for your terminal.
GNU General Public License v3.0
200 stars 12 forks source link

[FEATURE] Full Unicode support? #11

Closed 097115 closed 3 years ago

097115 commented 3 years ago

Feeds with non-Latin chars look crippled for now (example of a Cyrillic feed).

macOS, installed manually.

qw3rtty commented 3 years ago

Thanks for opening this issue! I will fix it. :)

qw3rtty commented 3 years ago

Have you tried to set the locale option of your neix.conf File? Because neix will set the locale for printing the Text correct.

If you got some questions let me know. :)

097115 commented 3 years ago

Well, it's set by default to UTF, isn't it? Anyway, I tried changing it to locale=ru_RU.UTF-8 UTF-8 but with no success :).

(Here's a test rss feed if you need one

qw3rtty commented 3 years ago

Thanks for sharing the test feed. I tried this feed on my Mac and on my Linux machine. On both this is working. See here.

Maybe your font supports not cyrillic? I am using the Jetbrains Mono font.

097115 commented 3 years ago

Now, that's interesting. Because with feed2exec I can parse the feed just fine (so, my term supports Cyrillic, my font supports Cyrillic, and there really shouldn't be any problems on this side).

May be it's some libs that are the culprit when compiling? my cmake is 3.15.3, don't know what else to check :)

qw3rtty commented 3 years ago

Okay, that's interesting. I will research what I can do there. :)

Thanks for your feedback!

qw3rtty commented 3 years ago

I found an article which is about UTF8 and wide-characters in ncurses.

... The man page tells you that you have to include “curses.h” to get any of the wide-character functions working, but the header that actually contains the wide-character function definitions is “ncursesw/curses.h“. I hope this gets fixed soon. ...

I will try this and let you know when you can try it again. Hopefully this works. :)

qw3rtty commented 3 years ago

I could reproduce and fix the issue. Please install the new version v0.1.3 for full unicode support. :)

097115 commented 3 years ago

Can confirm, it works. Thanks :)