Re: Re[2]: [cgiirc-general] cgi-irc 0.5.4 xml bug
Brought to you by:
dgl
|
From: David L. <dg...@dg...> - 2004-02-01 17:55:05
|
Maxim Shpakov wrote: > The problem is that xmlhttp.send method it translate chars into utf8 > from msdn: > >> > >>If the input type is a BSTR, the response is always encoded as UTF-8. > >>The caller must set a Content-Type header with the appropriate content type and include a charset parameter. > > as I see the solution is: > a) use SAFEARRAY parameter type for xmlhttp.send > MSDN: > >>>If the input type is a SAFEARRAY of UI1, the response is sent as is without additional encoding. > >>>The caller must set a Content-Type header with the appropriate content type. > but jscript doesn't support safearrays... > > b) translate from utf8-to-plain in client.cgi > > what do you think? > > This bug is critical for me.. because..it doesn't allow to chat in > cyrillic language.. 0.5.3 is fine. b) is difficult, CGI:IRC currently knows nothing about encodings, also sending %uHHHH doesn't look like UTF-8 to me, it looks like some other sort of unicode encoding.. To translate unicode characters into another format (I'm assuming you use something like windows-1251?) would be difficult.. |