title: How to fix UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 182342: invalid start byte?
body: <p>I am reading a csv file.</p>
  <pre><code>import pandas as pd
  
  df = pd.read_csv(&quot;samplefile.csv&quot;,delimiter=',')
  </code></pre>
  <p>I got error as:</p>
  <pre><code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 182342: invalid start byte
  </code></pre>
  <p>If I tried:</p>
  <pre><code>df = pd.read_csv(&quot;samplefile.csv&quot;,delimiter=',',encoding= 'unicode_escape')
  </code></pre>
  <p>Then, It works but I get unwanted characters like 'AÂ'</p>
  <p>Also tried</p>
  <pre><code> df = pd.read_csv(&quot;samplefile.csv&quot;,delimiter=',',encoding= 'ISO-8859-1')
  </code></pre>
  <p>same unwanted characters</p>