Character set in mod_irc

I search the forums and documentation, but any option like this I can't find.
I am running a Debian Testing server with ejabberd 1.0.0-1 and erlang 1:10.b.9-2

I am trying to post to an IRC server from ejabberd and a Jabber client (Coccinella).

It works ok, I am getting connection (open room "test%irc.server.com@jabber.my.com" which opens #test @ irc.server.com). But I get strange Unicode characters, instead of ISO-8859-1 (Latin-1) that I want in that group (that is the charactes å,ä and ö for locales sv_SE.UTF-8).

So the question is, where do I set default character set for IRC in mod_irc? I do want to have Latin-1
as default and other character sets as an option for different servers.

You can change this setting

You can change this setting as an end-user by going in Coccinella to the disco tabblad, then right click on the mod_irc component and select Register.

Changing the default setting for all users is currently only possible by editing the source code and recompiling the module. I just send Alexey a reminder about it. :o)

[03:41] <stian> anyone know how I can change default encoding on irc transport to utf-8 ?
[03:42] <stian> it is koi8-r or something pr default I think
[03:42] <stian> would be very xtremely cool to change this default
[03:43] <aleksey> inside mod_irc_connection.erl
[03:43] <aleksey> oops
[03:43] <aleksey> just mod_irc.erl
[03:44] <aleksey> -define(DEFAULT_IRC_ENCODING, "koi8-r").
[03:44] <stian> need to change this before I compile and install right?
[03:45] <stian> pretty please make this option configurable for next release ;)
[03:45] <aleksey> i'll try to not forget :)

--
sander

I couldn't see if the new

I couldn't see if the new release has got any fixes for this issue from release notes or https://support.process-one.net//browse/EJAB-48 (IRC Gateway improvements).

So, anyone that has tried, still an issue?

Not on 1.1.0. Try this patch

No, they are not related to default encoding.

Check this bug report: Add option for locale in mod_irc. There's a patch, can you try it to verify if it really works?

If you use a precompiled package and can't patch and recompile the sources, you can use this mod_irc.beam (it probably requires ejabberd 1.1.0 and Erlang R10B).

Thanks for the patch. I will

Thanks for the patch.
I will try this out on a server running Debain/testing. Should not be to big deal to rebuild ejabberd on it.
--
Debian is all I need.

in 1.1.4 mod_irc.erl still

in 1.1.4 mod_irc.erl still uses -define(DEFAULT_IRC_ENCODING, "koi8-r").
Changing this was the only way for me that finally gave me umlauts.
(I also tried {default_encoding, "utf-8"} and {"irc.freenode.net","utf-8"} in ejabberd.cfg which didn't work)
Please make the charset settable without having to recompile the code; or at least set it to utf-8 as default which is xmpp standard.

This improvement is tracked

This bug is fixed in the SVN

This bug is fixed in the SVN version.

Syndicate content