[ANN] pyxser-0.2r --- Python XML Serialization

Stefan Behnel stefan_ml at behnel.de
Mon Apr 20 01:24:18 EDT 2009


Daniel Molina Wegener wrote:
>   Sorry, it appears that I've misunderstand your question. By /unicode
> objects/ I mean /python unicode objects/ aka /python unicode strings/.

Yes, that's exactly what I'm talking about. Maybe you should read up on
what Unicode is.


> Most of them can be reencoded into /latin*/ strings and then /ascii/
> strings if is that what you want. But for most communications, suchs as
> Java systems, utf-8 encoding goes as default.

Well, then do not output a Python unicode string, but a UTF-8 encoded byte
string as the default. Except for a couple of cases, Python unicode strings
are very inconvenient for serialised XML.

Stefan



More information about the Python-list mailing list