Crypt module, Xchat & UTF-8 #149

Closed
opened 2026-10-05 04:01:21 +02:00 by adam · 0 comments
Owner

If xchat is used with the crypt module, any received UTF-8 characters will be displayed as gibberish, regardless of the specified charset.

I believe it does this because the character perpended to the string ('€' on my system, '¤' on other's) is not a valid utf-8 character code. I've tested this, modifying the crypt.cpp file removing the old code (227 if i recall) and replacing it with an asterisk. Xchat should not change charsets just because it finds an invalid character there, and I'll file that bug with them. ZNC shouldn't be mixing character sets. The easiest way to fix the problem would be to choose a different character with an ASCII code below 128 or allow the user to configure which character to display explicitly.

If xchat is used with the crypt module, any received UTF-8 characters will be displayed as gibberish, regardless of the specified charset. I believe it does this because the character perpended to the string ('€' on my system, '¤' on other's) is not a valid utf-8 character code. I've tested this, modifying the crypt.cpp file removing the old code (227 if i recall) and replacing it with an asterisk. Xchat should not change charsets just because it finds an invalid character there, and I'll file that bug with them. ZNC shouldn't be mixing character sets. The easiest way to fix the problem would be to choose a different character with an ASCII code below 128 or allow the user to configure which character to display explicitly. <!-- github-sync-id:6727451 -->
adam closed this issue 2026-10-05 04:01:21 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#149