I'm not sure this is the best place to add unicode support.
The problem is that IRC doesn't specify what encoding to use for comms, other than ASCII. It has become common practice in most IRC clients to set encoding on a per server or channel basis, and process strings based on that encoding.
Right now, libircclient doesn't need to remember what encoding a particular channel is, and just sends the bytes unadulterated. This allows consumers of the library to implement whatever encoding systems they want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure this is the best place to add unicode support.
The problem is that IRC doesn't specify what encoding to use for comms, other than ASCII. It has become common practice in most IRC clients to set encoding on a per server or channel basis, and process strings based on that encoding.
Right now, libircclient doesn't need to remember what encoding a particular channel is, and just sends the bytes unadulterated. This allows consumers of the library to implement whatever encoding systems they want.
Closing this as I don't believe libircclient is the best place to handle encoding.