title: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 2: invalid start byte, tried all encoding styles
body: <pre><code>ad
      data = self._reader.read(nrows)
    File &quot;pandas\_libs\parsers.pyx&quot;, line 826, in pandas._libs.parsers.TextReader.read
    File &quot;pandas\_libs\parsers.pyx&quot;, line 841, in pandas._libs.parsers.TextReader._read_low_memory
    File &quot;pandas\_libs\parsers.pyx&quot;, line 920, in pandas._libs.parsers.TextReader._read_rows
    File &quot;pandas\_libs\parsers.pyx&quot;, line 1052, in pandas._libs.parsers.TextReader._convert_column_data
    File &quot;pandas\_libs\parsers.pyx&quot;, line 1083, in pandas._libs.parsers.TextReader._convert_tokens
    File &quot;pandas\_libs\parsers.pyx&quot;, line 1220, in pandas._libs.parsers.TextReader._convert_with_dtype
    File &quot;pandas\_libs\parsers.pyx&quot;, line 1238, in pandas._libs.parsers.TextReader._string_convert
    File &quot;pandas\_libs\parsers.pyx&quot;, line 1429, in pandas._libs.parsers._string_box_utf8
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 2: invalid start byte
  </code></pre>
  <p>I am getting above error while reading my CSV</p>
  <p>to rectify this I used unicode escape:</p>
  <pre><code>csv_df=pd.read_csv(file_path,header=0,squeeze=True,dtype=str,keep_default_na=False,encoding='unicode_escape')   
  </code></pre>
  <p>However,
  Now I am getting \xa0 for space between two words:</p>
  <pre><code>'ObjectStatus': 'IN\xa0SERVICE'
  </code></pre>
  <p>My CSV has:</p>
  <pre><code>Key          Values
  RequestID   
  ObjectType   CONTAINER
  ObjectName   INMUNVMBMHPBNB6001ENBCMW005
  ObjectStatus IN SERVICE
  ObjectType   CONTAINER
  </code></pre>