title: How to handle the encoding?
body: <pre><code>import json
  import urllib2
  url = "http://api.douban.com/v2/book/1220562"
  hdr = { 'User-Agent' : 'super happy flair bot by /u/spladug' }
  req = urllib2.Request(url, headers=hdr)
  html = urllib2.urlopen(req).read()
  html = json.loads(html)
  func_name = 'callback'
  html = '{0}({1})'.format(func_name, html)
  print html
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>callback({u'rating': {u'max': 10, u'numRaters': 310, u'average': u'7.0', u'min': 0}, u'subtitle': u'', u'pubdate': u'2005-1', u'image': u'http://img3.douban.com/mpic/s1747553.jpg', u'binding': u'\u5e73\u88c5',..............})
  </code></pre>
  
  <p>I want to the ouput encoded to gb2312 or something that make it better.Maybe like </p>
  
  <pre><code>callback({'rating': {'max': 10, 'numRaters': 310, 'average': '7.0', 'min': 0......})
  </code></pre>
  
  <p>Sample output: <a href="http://southmoneyweixin.sinaapp.com/callback?callback=callback" rel="nofollow">url</a></p>