title: VS Code C# - System.NotSupportedException: No data is available for encoding 1252
body: <p>I am trying to use ExcelDataReader to read an .xls file on Ubuntu. I am using VS Code with C#. Here is the code:</p>
  
  <pre><code>var stream = File.Open(filePath, mode: FileMode.Open, access: FileAccess.Read);
  var reader = ExcelReaderFactory.CreateReader(stream);
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code>var reader = ExcelDataReader.ExcelReaderFactory.CreateBinaryReader(stream);
  </code></pre>
  
  <p>When I run, I am getting the following exception:</p>
  
  <blockquote>
    <p>Unhandled Exception: System.NotSupportedException: No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
       at System.Text.Encoding.GetEncoding(Int32 codepage)</p>
  </blockquote>
  
  <p>I already installed the <code>libmono-i18n-west4.0-cil</code> (tried also with <code>libmono-i18n4.0-all</code>) as I found out some people recommending this, but the problem persists. Also installed the package <code>System.Text.Encoding.CodePages</code> without success.</p>
  
  <p>Can anyone help to solve this?</p>