On Sat, Jun 20, 2009 at 6:57 PM, "Martin v. Löwis"<martin at v.loewis.de> wrote: > While I have your attention, please also review > > http://bugs.python.org/issue6233 I'm pretty sure that fix is the wrong fix - afaik, _encode is used to encode tag/attribute names, and charrefs don't work in that context. </F>