Character encoding & the copyright symbol

Richard Brodie R.Brodie at rl.ac.uk
Thu Aug 6 13:02:01 EDT 2009


"Robert Dailey" <rcdailey at gmail.com> wrote in message 
news:f64f9830-c416-41b1-a510-c1e486271b4e at g19g2000vbi.googlegroups.com...

> As you can see, I am trying to load the file with encoding 'cp1252'
> which, according to the python 3.1 docs, translates to windows-1252. I
> also tried 'latin_1', which translates to ISO-8859-1, but this did not
> work either. Am I doing something else wrong?

Probably it's just the debugging print that has a problem, and if you
opened an output file with an encoding specified it would be fine.
When you get a UnicodeEncodingError, it's conversion _from_
Unicode that has failed. 





More information about the Python-list mailing list