VS Code C# - System.NotSupportedException: No data is available for encoding 1252
I am trying to use ExcelDataReader to read an .xls file on Ubuntu. I am using VS Code with C#. Here is the code: var stream = File.Open(filePath, mode: FileMode.Open, access: FileAccess.Read); var reader = ExcelReaderFactory.CreateReader(stream); I also tried this: var reader = ExcelDataReader.ExcelReaderFactory.CreateBinaryReader(stream); When I run, I am getting the following exception: 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