This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author uis
Recipients uis
Date 2010-08-26.14:42:53
SpamBayes Score 0.0018232458
Marked as misclassified No
Message-id <1282833776.05.0.825088232802.issue9692@psf.upfronthosting.co.za>
In-reply-to
Content
The following code leads to an UnicodeError in python 2.7 while it works fine in 2.6 & 2.5:

# -*- coding: latin-1 -*-
import xml.etree.cElementTree as ElementTree

oDoc = ElementTree.fromstring(
    '<?xml version="1.0" encoding="iso-8859-1"?><ROOT/>' )
oDoc.set( "ATTR", "ÄÖÜ" )
print ElementTree.tostring( oDoc , encoding="iso-8859-1" )
History
Date User Action Args
2010-08-26 14:42:56uissetrecipients: + uis
2010-08-26 14:42:56uissetmessageid: <1282833776.05.0.825088232802.issue9692@psf.upfronthosting.co.za>
2010-08-26 14:42:54uislinkissue9692 messages
2010-08-26 14:42:53uiscreate