Re: cElementTree encoding woes

2006-02-20 Thread Diez B. Roggisch
> Both my python2.3 and python2.4 interpreters seem to know "Windows-1252": > import codecs codecs.open("windows.xml", encoding="windows-1252") > > > Maybe the problem lies in the python installation rather than > cElementTree? Just guessing, though. Hm. No idea why I was under the im

Re: cElementTree encoding woes

2006-02-20 Thread Fredrik Lundh
Diez B. Roggisch wrote: > I've got to deal with a pretty huge XML-document, and to do so I use the > cElementTree.iterparse functionality. Working great. > > Only trouble: The guys creating that chunk of XML - well, lets just say they > are "encodingly challanged", so they don't produce utf-8, but

Re: cElementTree encoding woes

2006-02-20 Thread Peter Otten
Diez B. Roggisch wrote: > I've got to deal with a pretty huge XML-document, and to do so I use the > cElementTree.iterparse functionality. Working great. > > Only trouble: The guys creating that chunk of XML - well, lets just say > they are "encodingly challanged", so they don't produce utf-8, bu

cElementTree encoding woes

2006-02-20 Thread Diez B. Roggisch
Hi, I've got to deal with a pretty huge XML-document, and to do so I use the cElementTree.iterparse functionality. Working great. Only trouble: The guys creating that chunk of XML - well, lets just say they are "encodingly challanged", so they don't produce utf-8, but only cp1252 instead, togethe