Re: problems with encoding and SAX

Mike Brown <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Daniel Clerc wrote:
> Hi everybody!
> 
> I have some trouble with SAX and encondings...
> 
> When I try to parse the following XML-code:
> 
> <?xml version="1.0" encoding="WINDOWS-1252" ?>
> </TRANSACTION>
> <TRANSACTION TIME="03.04.2003 01:52:15" TIME_CODED="37714.0779513889"
> DURATION="1001">
>   <QUESTION>K'R&#174;</QUESTION>
>                        ^^^^^^^^^^^^^^

Look where the closing tag for TRANSACTION is.
Copy-paste error in your email? Or does the XML actually
look like that?

You also seem to have a couple of illegal control characters in
your QUESTION element. My editor shows them as ^Y^N, so I guess
they are U+0019 and U+000E, respectively. Both are disallowed in
XML.
_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.