[XML-SIG] Encoding argument for toxml and toprettyxml

Martin v. Löwis loewis@informatik.hu-berlin.de
01 Jul 2002 15:42:46 +0200


Walter Dörwald <walter@livinglogic.de> writes:

> I like it. Even better would be if those methods were able to escape
> unencodable characters with character references inside Text nodes.
> That's exactly what PEP 293 was made for.

Right. Does that mean that the "errors" argument of the StreamWriter
needs to be exposed, or should we silently use "xmlcharrefreplace" in
2.3? If so, how do we find out whether this is a valid error mode?

Regards,
Martin