cgiirc - Ticket #68
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search
[Ticket]  [Timeline]  [Wiki
  [Attach]  [Edit]  [History

Ticket 68: iso-8859-1 chars in $cgi->{chan} ends up as ?

In my login page, I got

  <input name="Channel" type="radio" value="#Torget,#misc,#Hj&#228;lp" checked="1"/>

Then I start the chat, it results in joining the channel

  #Hj?

Add this line to line 922 in nph-irc.cgi to fix the problem:

  $cgi->{chan} = Encode::encode_utf8($cgi->{chan});

I'll try to add this as an attachment....

[Append remarks]

Remarks:

2005-Sep-29 04:36:40 by anonymous:
--- cgiirc-0.5.7/nph-irc.cgi    2005-06-19 20:38:53.000000000 +0200
+++ cgiirc/nph-irc.cgi  2005-09-29 06:36:09.000000000 +0200
@@ -918,8 +918,10 @@
    unless(access_configcheck('channel', $cgi->{chan})) {
       message('access channel denied', $cgi->{chan});
       $cgi->{chan} = (split /,/, $config->{default_channel})[0];
    }
+
+   $cgi->{chan} = Encode::encode_utf8($cgi->{chan});
    $irc->join($cgi->{chan} . (defined $key ? ' ' . $key : ''));

    say_command($_, 'Status') for split(/;/, $config->{perform});
 }
[Append remarks]

Properties:

Type: code           Version: 0.5.7 
Status: new          Created: 2005-Sep-29 04:28
Severity:          Last Change: 2005-Sep-29 04:28
Priority:          Subsystem: core 
Assigned To: dgl           Derived From:  
Creator: anonymous  Operating system: perl v5.8.4 

Related Check-ins:

2006-Apr-30 12:51 Check-in [265] : Fixes for tickets: #27 , #60 , #68 , #69 , #70 , #71 , #92 , #131 , #144 (By dgl)

CVSTrac 1.2.1 - CGI:IRC