title: Python: json data write to a file str
body: <hr>
  
  <p>Hi! Here is code:</p>
  
  <pre><code>def on_data(self, data):
      j_data = json.loads(data)
      tweet = data.split(',"text":"')[1].split('","source')[0]
      print j_data[u"text"]
  
  
      saveTweet = str(time.time())+'::'+tweet
      saveFile = open('tweetDB1.csv','a')
      saveFile.write(saveTweet)
      saveFile.write('\n')
      saveFile.close()
  </code></pre>
  
  <p>BUT! I need to write a tweet in file as a string without any garbarge there. If i write print tweet (not print j_data[u"text"]) I'll have utf-8 code, not encode:
  -\u0422\u044b \u0432\u0438\u0434\u0435\u043b</p>
  
  <p>How can I fix it?</p>