[JDEV] jabber.py problems
Jacek Konieczny
jajcus at bnet.pl
Wed Feb 6 10:28:08 CST 2002
On Wed, Feb 06, 2002 at 03:28:35PM +0100, Igor Stroh wrote:
> > so why shouldn't be the variable ENCODING in xmlstream in "utf-8"
> > instead of site.encoding?...
>
> it doesn't work this way, don't ask my why :) to switch to utf-8, edit
> your site.py and change the line that says "encoding = 'ascii'" to
> "encoding = 'UTF-8'"
It is not a good thing (one Python hacker told me this, with some
arguments, that convinced me).
jabber.py should be fixed, so it uses proper encoding.
And all applications using jabber.py should be prepared to convert UTF-8
from and to local encoding. There should be used no implicit conversion
between String (from user i/o) and UnicodeString (which is used in XML
stream, and should be user internally in jabber.py and probably in
applications).
Greets,
Jacek
More information about the JDev
mailing list