title: Encode error in python
body: <p>I was trying to parse twitter data. I retrieved the data and stored it in a file named 
  '<strong>twitterdata</strong>'</p>
  
  <pre><code>f = open('twitterdata','r')
  for line in f:
      jsonline = json.loads(line)
      for key in jsonline:
          print str(jsonline[key]).encode('utf-8')
  </code></pre>
  
  <p>I am getting the error even after using <strong>encode('utf-8')</strong>:</p>
  
  <pre><code>print str(jsonline[key]).encode('utf-8')
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-17: ordinal not in     range(128)
  </code></pre>