Saturday, November 12, 2011

python code/unicode/utf-8

s = urllib.urlopen('http://example.com').read()
s.decode('utf-8')

No comments:

Post a Comment