Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 support #11

Closed
cpkio opened this issue Sep 28, 2021 · 4 comments
Closed

UTF-8 support #11

cpkio opened this issue Sep 28, 2021 · 4 comments
Labels

Comments

@cpkio
Copy link

cpkio commented Sep 28, 2021

Are there any plans for Unicode support?

@uhlin
Copy link
Owner

uhlin commented Sep 28, 2021

My first thought was to reply it already has?
Swirc can handle UTF-8, ISO-8859-1 and ISO-8859-15.
If you aren't on Windows you can install all 3 encodings for your locale and set 'LC_ALL' to for example 'sv_SE.UTF-8'.

@cpkio
Copy link
Author

cpkio commented Sep 28, 2021

I'm on Windows with LC_ALL=en_US.UTF-8 and chcp 65001 on, but still get gibberish on russian (libera.chat:6697#kde_ru):
2021-09-28_160156

mIRC shows cyrillics fine on the same port.

My terminal emulator handles UTF-8 just fine in other cases (like gemini:// protocol Amfora app)…

@uhlin
Copy link
Owner

uhlin commented Sep 28, 2021

Ok. I will look into this.

@uhlin uhlin added the windows label Sep 29, 2021
@uhlin
Copy link
Owner

uhlin commented Oct 15, 2021

This will be fixed in 3.3.2 which is close. One however needs to enable the option Use Unicode UTF-8 worldwide language support:
dump4

I rebuilt the PDC library using UTF8=Y which makes PDCurses ignore the system locale. So for Windows computers UTF-8 is now forced.

I will close this issue in the next commit with a small modification to the printtext module that also was essential.

@uhlin uhlin closed this as completed in d54136f Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants