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

IRC channels with ISO-8859-15 characters do not work. #218

Closed
Nredor opened this Issue Sep 26, 2014 · 9 comments

Comments

Projects
None yet
6 participants
@Nredor
Copy link

Nredor commented Sep 26, 2014

There's one channel named #esitelmä with one ISO-8859-15 character. I can join typing /eval /join #esitelm${\0344} but when I try to write something there weechat says "no such channel". My system is UTF-8.

@flashcode flashcode added the bug label Sep 26, 2014

@flashcode flashcode self-assigned this Sep 27, 2014

@flashcode

This comment has been minimized.

Copy link
Member

flashcode commented Sep 27, 2014

I'm not sure if this is easy to fix.

The problem is that WeeChat tries to convert all messages to UTF-8 (the internal messages are all UTF-8 in WeeChat).
With the charset plugin, you can change the charset of some channels only; you could try to setup this channel as ISO, but it's not even easy, because the charset config is stored in charset.conf, and all config files are using UTF-8 inside.

I tested with a channel containing UTF-8 special chars (like "ä"), there's no problem at all.
Since UTF-8 is more the future than ISO charsets, would it be possible to use UTF-8 inside channel names? (even if it would be even better to use only plain ASCII in channel names).

@Nredor

This comment has been minimized.

Copy link
Author

Nredor commented Sep 29, 2014

Yes, ASCII or UTF-8 channel names would be ideal but there's some old active channels with ISO characters and it's quite impossible to move these ancient irc-channels full of old irc users :) Could there be some workaround that WeeChat would allow channel names to contain functions like ${\0344}? I would truly like to use WeeChat instead of Irssi but for me this is breaking bug (because of those ancient irc channels :/).

@flashcode

This comment has been minimized.

Copy link
Member

flashcode commented Sep 29, 2014

I'll look at the problem, but as I said, maybe not easy to fix.

@flashcode flashcode removed the waiting info label Sep 29, 2014

@lepinkainen

This comment has been minimized.

Copy link

lepinkainen commented Oct 14, 2014

I'm having the same issue.

I need to join channels that have been ISO-8859-1 encoded since the dawn of IRC and moving to an UTF-8 encoded channel name is not an option. It's OK if joining the channel isn't automatic or pretty, but I need to be able to talk there without any special operation each time I need to send a line.

@OzQu

This comment has been minimized.

Copy link

OzQu commented Feb 25, 2015

I'm also suffering from this bug. I would love to start using weechat instead of irssi, but this is quite important for me.

Just wanted to make some noise about this bug, so maybe one day someone will have time to do something about it..

@ISO-B

This comment has been minimized.

Copy link

ISO-B commented Apr 23, 2015

Having same issue as well.

@flashcode

This comment has been minimized.

Copy link
Member

flashcode commented Jun 27, 2015

Hi,
The problem should be fixed.
I made some tests (which were OK), but I'm not sure if ISO-8859-15 chars in channel names could cause some bugs in display or commands.
If you find other bugs, please open a new ticket (or reopen this one if you think the problem is not fixed).

@Mikaela

This comment has been minimized.

Copy link
Contributor

Mikaela commented Jun 27, 2015

offtopic

(or reopen this one if you think the problem is not fixed)

unless you close the issue by yourself, only organization members with appropiate permissions can reopen issues.

@flashcode

This comment has been minimized.

Copy link
Member

flashcode commented Jun 27, 2015

Ah, then just add a comment instead of reopening the issue if that's not possible.

flashcode added a commit that referenced this issue Aug 14, 2015

irc: add option irc.network.channel_encode (issue #218, issue #482)
This is a workaround (disabled by default) to join and chat on ISO
encoded channels (or another charset different from UTF-8).

This option may be removed in future if a better solution is
implemented.

flashcode added a commit that referenced this issue Aug 15, 2015

irc: update help on option irc.network.channel_encode (issue #218, is…
…sue #482)

Remove mention of WeeChat <= 1.2 since the behavior is not exactly the
same as old versions (when the option is enabled): only the
channel/message are decoded/encoded and not the nick/host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.