Message114980
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" ) |
|
Date |
User |
Action |
Args |
2010-08-26 14:42:56 | uis | set | recipients:
+ uis |
2010-08-26 14:42:56 | uis | set | messageid: <1282833776.05.0.825088232802.issue9692@psf.upfronthosting.co.za> |
2010-08-26 14:42:54 | uis | link | issue9692 messages |
2010-08-26 14:42:53 | uis | create | |
|