[XML-SIG] Re: Encoding again

Fredrik Lundh fredrik at pythonware.com
Mon Apr 19 13:52:39 EDT 2004


Eustaquio Rangel de Oliveira Jr. wrote:

> But using libxml and Python to make this gives me weird chars. What
> could be happening here? Using encode/decode on the result string gives
> me a "UnicodeError: ASCII decoding error: ordinal not in range(128)".

what's the output encoding?  the XML default is UTF-8, which tends to
look as weird characters if you view them as ISO-8859-1.

check if you can specify the encoding when you're saving the file (according
to the libxml2 docs, xmlSaveFileEnc and xmlSaveFileTo both take encoding
arguments).

</F>






More information about the XML-SIG mailing list