title: Removing non-ascii characters in a csv file
body: <p>I am currently inserting data in my django models using csv file. Below is a simple save function that am using:</p>
  
  <pre><code>def save(self):
  myfile = file.csv
  data = csv.reader(myfile, delimiter=',', quotechar='"')
  i=0
  for row in data:
      if i == 0:
          i = i + 1
          continue    #skipping the header row        
  
      b=MyModel()
      b.create_from_csv_row(row) # calls a method to save in models
  </code></pre>
  
  <p>The function is working perfectly with ascii characters. However, if the csv file has some non-ascii characters then, an error is raised: <strong><em>UnicodeDecodeError
  'ascii' codec can't decode byte 0x93 in position 1526: ordinal not in range(128)</em></strong></p>
  
  <p><strong>My question is:</strong> How can i remove non-ascii characters before saving my csv file to avoid this error.</p>
  
  <p>Thanks in advance.</p>