I believe I had to set the default locale of my system to use UTF-8 by
setting the appropriate environment variable.
I believe it was the following on an ubuntu server:
LANG=en_US.UTF-8
The other option as Nick pointed out is using the following:
foo = foo.encode(utf-8)
Jason Emerick
Here is some rough python code that I quickly wrote last weekend to handle
the json spritzer feed: http://gist.github.com/126173
During the 3 or so days that I ran it, I didn't notice it die at any time...
Jason Emerick
The information transmitted (including attachments) is covered
]
request = urllib2.Request('http://stream.twitter.com/spritzer.json')
request.add_header('Authorization', 'Basic %s' % basic)
spritzer = urllib2.urlopen(request)
Jason Emerick
The information transmitted (including attachments) is covered by the
Electronic Communications Privacy Act, 18 U.S.C. 2510
https://twitter.com/about#download_logo
Jason Emerick
The information transmitted (including attachments) is covered by the
Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only
for the person(s) or entity/entities to which it is addressed and may
contain confidential
registrations are no longer
accepted.
TwitPic and other services setup their source parameters before it was
depreciated.
Jason Emerick
The information transmitted (including attachments) is covered by the
Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only