Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Channel names encoding #482
I use an irc network (chathispano) that it use iso-8859-15, and the channel names are iso-8859-15 too.
Configuring the default charset to iso-8859-15 in weechat,
Can you try with a default config, in a new WeeChat session, to be sure it's not an upgrade problem or something like that?
Steps to test:
With the default charset config,
I can't join this channel, so I edit
OK, so I understand your problem. Let me explain what WeeChat did before the fix #218, and the current behavior.
In WeeChat <= 1.2, the whole message was decoded, including the nick, host, channel, target, and the body of message ifself.
Here everything was decoded and encoded when receiving/sending to the IRC server.
The current behavior in WeeChat >= 1.3-dev is to decode the user message only.
I agree this is a bit weird to have to do that, and this lead to some display problem in name after, because the channel name is now stored as-is in WeeChat (in ISO and not as UTF-8, like everything else). That's why you'll see chars
So what can we do for that?
Note: this solution could be developed for the future, not for 1.3, which should be released next days.
As I said, I think current charset options should apply only to user messages, not channel names. This is because on the same IRC server you can have UTF-8 and ISO channels (it would be really better if people use UTF-8 everywhere, but for now, we must support both...).
So what about adding other charset options that would tell WeeChat to encode one specific channel to ISO (or all channels on a server if you are sure to always use ISO)?
And what can we do for the version 1.3?
Since the version 1.3 should be released soon, I see only two options:
Please give me a fast feedback on that, because the release of 1.3 is still scheduled for Aug 16th
Thank you, flashcode. Now I can see the ISO channels correctly :)
( Just a comment. The option
Yes you're right, with the option enabled, only the channel is decoded (in addition to the user message).