[XML-SIG] Encoding again

Eustaquio Rangel de Oliveira Jr. eustaquiorangel at yahoo.com
Mon Apr 19 13:35:45 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey.

I have a XML file with:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>

and a XLST file with:

<xsl:output method="text" encoding="ISO-8859-1" indent="no"/>

Using both files on Sablotron, for example, gives me a ISO-8859-1
output, with all the latin characters.
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)".

Thanks!

- --
~    .--.     TaQ (Eustáquio Rangel)                  ((__-^^-,-^^-__))
~   |o_o |    Usuário registrado GNU/Linux no. 224050  `-_---' `---_-'
~   |:_/ |    email  : eustaquiorangel at yahoo.com        `--|o` 'o|--'
~  //   \ \   URL    : http://beam.to/taq                  \  `  /
~ (|     | )  ICQ    : 110103942                            ): :(
/'\_   _/`\  PGP key: 0x784988BB                           :o_o:
\___)=(___/  Eu gosto de GNU/Linux, e vc ? ;)               "-"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAhA3xb6UiZnhJiLsRAt4+AKCuJP5l3jSxwlTebn4fT4Fs7cUF6wCfbj65
YiTR1RX5h2frx9XgkH+JuEc=
=ZrHg
-----END PGP SIGNATURE-----



More information about the XML-SIG mailing list