title: csv with different encoding
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2342284/open-a-file-in-the-proper-encoding-automatically">Open a file in the proper encoding automatically</a>  </p>
  </blockquote>
  
  
  
  <p>my code:</p>
  
  <pre><code>import csv
  
  def handle_uploaded_file(f):
    dataReader = csv.reader(f, delimiter=';', quotechar='"')
  
  for row in dataReader:
    do_sth
  </code></pre>
  
  <p>the problem is that it works well only if csv is UTF-8 encoded. What should I change to serve the iso-8859-2 or windows-1250 encoding?
  (the best solution is to autorecognize the encoding, but hand converting is also acceptable)</p>