I have been playing around with pyGoogle (python wrapper for the google API), and I have come across a strange error that I have never seen before. Here is a code snippet:
for r in data.results:
print 'Title: ',r.title
print 'URL: ',r.URL
print 'Summary: ',r.snippet
And here is the error:
UnicodeEncodeError: 'ascii' codec can't encode character '\ua9' in position 119: ordinal not in range(128)
This error specifically happens when the script tries to print r.snippet (the summary snippet of the site that google returns).
I have found very little on the net about this error message or how to correct it. Any thoughts?