Alecs' Blog Did you ever go clear..

xchat patch for mulitbytes locale

Xchat is using utf-8 as much as possible in itself. There is a problem when printing texts that's neither utf-8 nor iso-8859-1 (ie. a zh_CN.GBK encoded file on zh_CN.GBK locale). The texts cannot be properly shown in the running xchat on localhost (other clients who have recieved the texts can see them without problems anyway).

So i got my feet wet and tried to write a workable patch. This is how it was going with the discussion of xchat author Peter Zelezny.

And the final patch can be downloaded here.

That said, use utf-8 wherever possible. When writing scripts for xchat, better save them in utf-8 encoding.

24 Jun 2004

Fork me on GitHub