Re: [Tutor] Fw: unicode, utf-8 problem again

2009-06-04 Thread Stefan Behnel
Dinesh B Vadhia wrote: > Hi! I'm processing a large number of xml files that are all declared as > utf-8 encoded in the header ie. > > > > I'm using elementtree to process the xml files and > don't (usually) have any problems with that. Plus, the workaround that > works is to encode each eleme

[Tutor] Fw: unicode, utf-8 problem again

2009-06-04 Thread Dinesh B Vadhia
I forgot to add that I'm using elementtree to process the xml files and don't (usually) have any problems with that. Plus, the workaround that works is to encode each elementtree output ie.: thisxmlline = thisxmlline.encode('utf8') But, this seems odd to me as isn't it already being processed