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
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