import json
import urllib2
url='http://search.twitter.com/search.json?q=python'
open=urllib2.urlopen(url)
response=open.read().encode('utf8')
data=json.loads(response)
results=data['results']
for result in results:
print result['from_user'] + ': ' + result['text'] + '\n'
エラーが発生しますUnicodeEncodeError: 'charmap' codec can't encode characters in position 16-24: character maps to <undefined>
。
誰にもこれに対する解決策がありますか?