[jdev] Re: [jadmin] PyMSNt 0.3 release + docs!
James Bunton
james at delx.cjb.net
Tue Aug 24 16:03:33 CDT 2004
On Wed, 25 Aug 2004 03:00 am, Bruce Wang <number5 at gmail.com> 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
More information about the JDev
mailing list