The issue here is that the ’
that you have in your string is not ascii. The ascii equivalent is '
, note the difference.
Getting unicode errors when printing is common in Python, and what you need to do is encode the string before you print it.
eg.
print g_data[5].text.encode('utf-8')
More information can be found in the Python documentation – https://docs.python.org/2.7/howto/unicode.html#the-unicode-type
CLICK HERE to find out more related problems solutions.