Feature request UTF-8 coding #4

Closed
opened 2026-10-05 03:15:37 +02:00 by adam · 5 comments
Owner

First of all thank You for such a great software 🫡. My native language contains many signs like "ąęźżłó" is it possible to make them work? Thank You in advance... In Screen shot should be written "chiałem żądać" and it is what it is now 😄
Zrzut ekranu 2024-08-9 o 01 00 45

First of all thank You for such a great software 🫡. My native language contains many signs like "ąęźżłó" is it possible to make them work? Thank You in advance... In Screen shot should be written "chiałem żądać" and it is what it is now 😄 <img width="299" alt="Zrzut ekranu 2024-08-9 o 01 00 45" src="https://github.com/user-attachments/assets/535b80d6-0b24-4224-bb61-35a4bbd790f7"> <!-- github-sync-id:2456789363 -->
adam closed this issue 2026-10-05 03:15:37 +02:00
Author
Owner

I'm happy to hear you are enjoying it. I don't know how to support other languages/characters but I will leave this open in hopes another developer can take it on. Also, if I get more free time in the future, I will look into it myself. May I ask what your native language is, and what country you are in?

I'm happy to hear you are enjoying it. I don't know how to support other languages/characters but I will leave this open in hopes another developer can take it on. Also, if I get more free time in the future, I will look into it myself. May I ask what your native language is, and what country you are in? <!-- github-comment-id:2276864135 -->
Author
Owner

@LOCOSP I've made a recent change that may fix this. Are you able to give it a try?

@LOCOSP I've made a recent change that may fix this. Are you able to give it a try? <!-- github-comment-id:2586119853 -->
Author
Owner

I'm sorry to say that but it didn't work...

Just downloaded the newest 1.0.1

Image
I'm sorry to say that but it didn't work... Just downloaded the newest 1.0.1 <img width="577" alt="Image" src="https://github.com/user-attachments/assets/5678ab79-6447-4183-8394-3bbf1f5a8852" /> <!-- github-comment-id:2603361281 -->
Author
Owner

Thanks for checking. Looking around I many be able to support this by adding:

import locale
locale.setlocale(locale.LC_ALL, "")
locale_encoding = locale.getpreferredencoding()

changing all addstr requests to, for example:

win.addstr(y, x, your_string.encode('utf-8').decode('utf-8'))

I'll give it a shot when time allows, or unless someone else does first.

Thanks for checking. Looking around I many be able to support this by adding: ``` import locale locale.setlocale(locale.LC_ALL, "") locale_encoding = locale.getpreferredencoding() ``` changing all addstr requests to, for example: ``` win.addstr(y, x, your_string.encode('utf-8').decode('utf-8')) ``` I'll give it a shot when time allows, or unless someone else does first. <!-- github-comment-id:2603390943 -->
Author
Owner

Hey @LOCOSP, is it working for you now?

Hey @LOCOSP, is it working for you now? <!-- github-comment-id:2611305352 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/contact#4