title: How do i read a dbase file and apply different decoding?
body: <p>I have a dbf file endcoded as 866 codepage (DOS)</p>
  
  <p>Using the code below, I'm trying to read it.
  Problem is that strings I get are formed as if the file was in code page 1252.
  I've checked other questions on SO and other forums with no luck so far.
  Looking for ideas on hot to read it propperly.</p>
  
  <pre><code>var ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\PathtoFile\;Extended Properties=""dBase 5.0""";
  var  dBaseConnection = new System.Data.OleDb.OleDbConnection(ConnectionString );
  
  dBaseConnection.Open();
  
  var dBaseCommand = new System.Data.OleDb.OleDbCommand("SELECT * FROM FileName",dBaseConnection);
  var dBaseDataReader =  dBaseCommand.ExecuteReader(CommandBehavior.SequentialAccess);
  
  
  while( dBaseDataReader.Read()){
  
  Encoding.GetEncoding(866).GetString(Encoding.GetEncoding(1252).GetBytes(dBaseDataReader.GetString(2)).Dump();  // Does not help 
  }
  </code></pre>