title: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
body: <p>hiee i m a newbee in feild of python please help..</p>
  
  <p>this is the error wat i m getting</p>
  
  <p>'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)</p>
  
  <p>here is my code</p>
  
  <pre><code>import json
  import urllib
  import difflib
  
  def main():
      f1 = open('tweet-stream.json','r')    
      Outputfile =open('newdata6.ods', 'w')
      count = 0
  
      for line in f1:
          d = json.loads(line)
          lang =  d["user"]["lang"]
          status_count = d["user"]["statuses_count"]
          id1= d['user']['id']
          name=d['user']['location']
          print &gt;&gt;Outputfile,"Language: "+ ','+ lang +','+ "Status_Count" +','+str(status_count)+','+str(id1)+','+str(name)
  
  
  if __name__ == "__main__":    
      main()
  </code></pre>