title: Python - CSV reader - unable to read all lines
body: <p>I have the following snippet</p>
  <pre><code>import csv
  
  data = {}
  with open('data.csv', 'rb') as csvfile:
      spamreader = csv.reader(csvfile, quotechar=None)
      count = 0
      for row in spamreader:
          data.update({row[0]:row[1]})
          count+=1
          
  
  print(count)
  print(len(data))
  </code></pre>
  <p>The file <code>data.csv</code> contains a total of 234611 rows and 2 columns.</p>
  <p>The output is:</p>
  <blockquote>
  <p>234611</p>
  <p>52183</p>
  </blockquote>
  <p>Now the reader is able to read all lines but unable to populate them into the <code>data</code> dictionary. Any idea how to debug this issue?
  Also, it's worth mentioning that the csv file contains a lot of non-english characters.</p>