Maybe the problem is with the script. It sounds like your bot is able to join the channel with the weird letter in it, so it must be handling the utf correctly.
Hi,
being the author of CHATstats, I'm interested in knowing where exactly the problem can be within the script, from a theoretical point of view.
There's no encoding transformation/converting in the script. For channel names or nick names, whatever strange characters they contain, the script just takes the characters, does some list and/or string processing and outputs them. Where could be the point where the script messes up?
The problem is, even a simple one-line-script (bound to join or whatever) like
if {[onchan $channel $nick]} {do_this}
would mess up if the nick contained strange characters.
So I'd like to know what I can include as a workaround. Any ideas ?