Re: "encoding specified in XML declaration is incorrect"

2004-12-02 Thread "Martin v. Löwis"
Gustaf Liljegren wrote: f.write(header + self.all + footer) UnicodeEncodeError: 'ascii' codec can't encode characters in position 745-751: ordinal not in range(128) The XML declaration should be enough to tell the encoding. Sure, but that does not help at all. self.all is a Unicode string; i

"encoding specified in XML declaration is incorrect"

2004-12-02 Thread Gustaf Liljegren
xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "D:\Python\lib\xml\sax\expatreader.py", line 211, in feed self._err_handler.fatalError(exc) File "D:\Python\lib\xml\sax\handler.py", line 38, in fatalError raise exception xml.sax._exceptions.SAX