tweetyPy, upon polling Twitter's "friends_timeline", returns a Unicode error.
Bug #130896 reported by
muraii
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tweetyPy |
Confirmed
|
Medium
|
Stuart Colville |
Bug Description
Here’s the error I’m getting:
Traceback (most recent call last):
File “/home/
main(sys.argv[1:])
File “/home/
print result
UnicodeEncodeError: ‘latin-1′ codec can’t encode character u’\u2014′ in position 883: ordinal not in range(256)
Actually, this is a bit different, as it previously was in position 1014. I wager someone used an em-dash in their tweet, and the position change is due to new tweets pushing that offending character around.
To post a comment you must log in.
Give this branch a try - I've added a piece of code to make sure all entities are properly converted to unicode strings and hopefully this will resolve the problem. You can grab this branch from here: https:/ /code.edge. launchpad. net/~muffinrese arch/tweetypy/ trunk