title: Arabic text replaced with escape sequences when creating CSV files using python
body: <p>I am trying to create a CSV file that contains Arabic tweets collected using tweepy for a project I am doing. All is fine gathering the data, however, when i am writing to the CSV file all Arabic results are escaped with \xXXXX sequences
  as follows:</p>
  
  <blockquote>
    <p>b'#\xd8\xa7\xd9\x84\xd9\x8a\xd9\x88\xd9\x85_\xd8\xa7\xd9\x84\xd8\xb9\xd8\xa7\xd9\x84\xd9\x85\xd9\x8a_\xd9\x84\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd9\x82\xd9\x87_2017 \xd8\xa7\xd9\x84\xd8\xa5\xd8\xb9\xd8\xa7\xd9\x82\xd8\xa9 \xd8\xa7\xd9\x84\xd8\xad\xd9\x82\xd9\x8a\xd9\x82\xd9\x8a\xd8\xa9 \xd8\xa7\xd8\xb9\xd8\xa7\xd9\x82\xd8\xa9 \xd8\xa7\xd9\x84\xd9\x81\xd9\x83\xd8\xb1 \xd9\x88\xd9\x84\xd9\x8a\xd8\xb3\xd8\xaa \xd8\xa7\xd8\xb9\xd8\xa7\xd9\x82\xd8\xa9</p>
  </blockquote>
  
  <p>I looked at many previously asked questions and all I could find was suggestions for python 2 or answers similar to the one I am writing. When I was creating JSON files instead I was using <code>ensure_ascii=False</code> but I couldn't find anything similar for CSV. Below is my code:</p>
  
  <pre><code> with codecs.open('tweets.csv', 'a', encoding='utf-8') as file:
          fieldnames = ['tweet', 'country']
          writer = csv.DictWriter(file, fieldnames=fieldnames)
          data = {'tweet': status.text, 'country': status.place.full_name}
          writer.writerow(data)
  </code></pre>
  
  <p>I tried adding <code>.encoding='utf-8'</code> to <code>status.text</code> and <code>status.place</code> as well but that also didn't work. Any suggestions?</p>