Comment 22 for bug 605543

Revision history for this message
Foppe Hemminga (foppe) wrote :

Thanks Captain Chaos,

I don't have time to look into this right now. So a couple of questions and remarks.
What languages are the tweets you receive?
You can print the raw data with the print statement:
  print data["text"]
or
  print s
in function unescape (s)
and view the twitter stream in console if you run `gwibber-services -od` (-id?)
Before the data is parsed by htmllib.HTMLParser it must be unicode. Search Google for that, see for example [1]

[1] http://evanjones.ca/python-utf8.html