Re: UnicodeEncodeError while reading xml file (newbie question)

2008-06-08 Thread nikosk
You won't believe how helpful your reply was. I was looking for a problem that did not exist. You wrote : > (3) why you think you need to have "data.decode(.)" at all and after that : > (7) are you expecting non-ASCII characters after H_C= ? what > characters? when you open your xml file in a b

Re: UnicodeEncodeError while reading xml file (newbie question)

2008-06-07 Thread John Machin
On Jun 8, 10:12 am, nikosk <[EMAIL PROTECTED]> wrote: > I just spent a whole day trying to read an xml file and I got stuck > with the following error: > > Exception Type: UnicodeEncodeError > Exception Value:'charmap' codec can't encode characters in position > 164-167: character m

UnicodeEncodeError while reading xml file (newbie question)

2008-06-07 Thread nikosk
I just spent a whole day trying to read an xml file and I got stuck with the following error: Exception Type: UnicodeEncodeError Exception Value:'charmap' codec can't encode characters in position 164-167: character maps to Exception Location: C:\Python25\lib\encodings\cp1252.