Support for /CODEPAGE

Szymon Stefanek pragma at kvirc.net
Sun Oct 31 23:39:45 EST 2004


This one works flawlessly with several cyrillic codepages on the WeNet 
network. One can choose the codepage to use and the server takes case
of the encoding/decoding.

:irc.wenet.ru 001 Pragma :Welcome to the WeNet IRC Network Pragma!~pragma at xxx
:irc.wenet.ru 002 Pragma :Your host is irc.wenet.ru, running version ircd-RU!
(Bahamut-1.4.35)-1.0(07)-02
...
:irc.wenet.ru 005 Pragma ... CODEPAGES ... :are available on this server
...
:irc.wenet.ru 700 Pragma CP1251 :is now your translation scheme
>>> CODEPAGE UTF8
:irc.wenet.ru 700 Pragma UTF8 :is now your translation scheme
>>> JOIN #tokyo,#ny,#siena,#ukraina

It would be nice to see it also on other IRC daemons.

The server stores and manages utf8 strings: it is just an assumption, almost 
no code is required for that.

The server notifies the "CODEPAGES" feature after client login and puts the 
client in utf8 mapping (so no decoding is needed on the server side).
Low-range clients that can't handle unicode input or make charset translations
would try to set their own codepage. Smarter clients (that can
handle unicode and remap to other charsets) would just keep the utf8 setting.

-- 

Szymon Stefanek

------------------------------------------------------------------------------
-
- The brighter you are the more you have to learn.
-
------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ircd-hybrid.org/pipermail/hybrid/attachments/20041101/1cb75fcc/attachment.pgp>


More information about the hybrid mailing list