Re[2]: [cgiirc-general] cgi-irc 0.5.4 xml bug
Brought to you by:
dgl
|
From: Onslo <on...@ni...> - 2004-02-04 18:13:54
|
Guys, I have played around with UTF-8 and CGI:IRC before, but have only just got to a point whereby my findings are understandable to myself ! Enabling UTF-8 (Unicode Charset) in CGI:IRC is relatively easy, but you have to define the charset in numerous places for it to be accepted on both input and output. I'll use the ie.pm file as an example, but the same should apply to all interfaces really. Add this line inside every HEAD tag within the ie.pm file .. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> that way you are defining the browser encoding that should be used by IE. Then you have to tell the CGI::IRC form to accept UTF-8 as an input charset within it's form structure. I managed this by adding... ACCEPT-CHARSET="UTF-8" within the form tag for hsubmit and myform. eg. <form ACCEPT-CHARSET="UTF-8" name="myform" onSubmit="return cmd();" class="form-form"> Hope that helps -- Best regards, Onslo mailto:on...@ni... |