Reputation: 862
I want to read the data from this dbf file :
http://77.235.53.170/test.rar
The last column name is in hebrew , I'm using this code:
OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\;Extended Properties=dBASE IV;Locale Identifier=1033");
try
{
con.Open();
OleDbDataAdapter da = new OleDbDataAdapter("select * from test.dbf", con);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
int i = ds.Tables[0].Rows.Count;
return true;
}
catch (Exception e)
{
var error = e.ToString();
// check error details
return false;
}
and the column names keep coming as gibberish. I've also tried "Local Identifier=1255" and it didn't work.
This is what I get in c#
This is how it should look like
Using .Net 4 windows 7.
Help will be appreciated.
Upvotes: 0
Views: 577
Reputation: 90
Upvotes: 1