On Wed, 25 Aug 2004 03:00 am, Bruce Wang <[EMAIL PROTECTED]> wrote: > I got a bug related to UTF-8 encoding/or i18n charsets > after I send two Chinese characters using Psi > peer is one using MSN Messenger > > File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line > 50, in callback > > File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", > line 34, in __call__ > > File "main.py", line 99, in onMessage > self.sessions[froj.userhost()].onMessage(el) > File "/home/bruce/sandbox/PyMSNt/src/jabw.py", line 97, in onMessage > body = str(child) > exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters > in position 0-1: ordinal not in range(128) > > -- > simple is good
Yes. At the moment the transport doesn't support unicode at all. I'm looking into how to get it working properly with UTF-16. If anybody wants to help out, have a look in jabw.py for the parts that need to be changed. --- James _______________________________________________ jdev mailing list [EMAIL PROTECTED] https://jabberstudio.org/mailman/listinfo/jdev