playing with pyGoogle - strange codec error

Brian Blazer brian at brianandkate.com
Mon Apr 4 11:06:23 EDT 2005


Hello,

I am playing around with pyGoogle and encountered an error that I have 
never seen, and I am unsure how to correct for it.  Here is a code 
snippet:

for r in data.results:
    print 'Title: ',r.title
    print 'URL: ',r.URL
    print 'Summary: ',r.snippet
    print

Everything works fine until I get to r.snippet.  Here is the error:

UnicodeEncodeError: 'ascii' codec can't encode character '\ua9' in 
position 119: ordinal not in range(128)

Any help is appreciated.

Thanks,
Brian
-- 
Nail a post to the Spalted Board. Free WW'ing software and forums.  
Regular freebies! http://www.spaltedboard.com




More information about the Python-list mailing list