Re: [Tutor] ascii codec cannot encode character

2011-01-28 Thread Alex Hall
On 1/28/11, Dave Angel wrote: > On 01/28/2011 08:02 AM, Alex Hall wrote: >> On 1/28/11, Dave Angel wrote: >>> On 01/-10/-28163 02:59 PM, Alex Hall wrote: I tried both of those and got a different error. I have since fixed it so I no longer have the exact text, but it was something

Re: [Tutor] ascii codec cannot encode character

2011-01-28 Thread Dave Angel
On 01/28/2011 08:02 AM, Alex Hall wrote: On 1/28/11, Dave Angel wrote: On 01/-10/-28163 02:59 PM, Alex Hall wrote: I tried both of those and got a different error. I have since fixed it so I no longer have the exact text, but it was something about not supporting convertion from unicode. I fi

Re: [Tutor] ascii codec cannot encode character

2011-01-28 Thread Alex Hall
On 1/28/11, Dave Angel wrote: > On 01/-10/-28163 02:59 PM, Alex Hall wrote: >> >> I tried both of those and got a different error. I have since fixed it >> so I no longer have the exact text, but it was something about not >> supporting convertion from unicode. I finally ended up doing this: >> s

Re: [Tutor] ascii codec cannot encode character

2011-01-28 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Alex Hall wrote: I tried both of those and got a different error. I have since fixed it so I no longer have the exact text, but it was something about not supporting convertion from unicode. I finally ended up doing this: self.title�ta.find("title").text.encode("utf-8"

Re: [Tutor] ascii codec cannot encode character

2011-01-28 Thread Peter Otten
Alex Hall wrote: > Hello again: > I have never seen this message before. I am pulling xml from a site's > api and printing it, testing the wrapper I am writing for the api. I > have never seen this error until just now, in the twelfth result of my > search: > UnicodeEncodeError: 'ASCII' codec can'

Re: [Tutor] ascii codec cannot encode character

2011-01-28 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Alex Hall wrote: Hello again: I have never seen this message before. I am pulling xml from a site's api and printing it, testing the wrapper I am writing for the api. I have never seen this error until just now, in the twelfth result of my search: UnicodeEncodeError: 'A

Re: [Tutor] ascii codec cannot encode character

2011-01-27 Thread Alex Hall
On 1/27/11, Steven D'Aprano wrote: > Alex Hall wrote: >> Hello again: >> I have never seen this message before. I am pulling xml from a site's >> api and printing it, testing the wrapper I am writing for the api. I >> have never seen this error until just now, in the twelfth result of my >> search

Re: [Tutor] ascii codec cannot encode character

2011-01-27 Thread Steven D'Aprano
Alex Hall wrote: Hello again: I have never seen this message before. I am pulling xml from a site's api and printing it, testing the wrapper I am writing for the api. I have never seen this error until just now, in the twelfth result of my search: UnicodeEncodeError: 'ASCII' codec can't encode ch

[Tutor] ascii codec cannot encode character

2011-01-27 Thread Alex Hall
Hello again: I have never seen this message before. I am pulling xml from a site's api and printing it, testing the wrapper I am writing for the api. I have never seen this error until just now, in the twelfth result of my search: UnicodeEncodeError: 'ASCII' codec can't encode character u'\u2019' i