Dear Team,
We are using VFPOLEDB data provider. We need to read the DBF file and convert this into CSV file. we are using VFPOLEDB.1 data provider to read the ukraninan file name ПолесьеПродукт_Товары.DBF. While executing line execute reader(), we are getting an error "No value or one or more paramter required". This is working fine when we have normal English character in the filename like ABC.dbf or TEST.DBF..etc. The problem lies only when we have non English character like Ukrainian letters in the file name then we are getting exception in execute reader() method.
dbfFilename = Path.GetFileName(FilePath);
string connvalue = @"Provider=VFPOLEDB.1;Data Source=" + InputFileInfo.DirectoryName + ";";
using (OleDbConnection oleDbConnectionStr = new OleDbConnection(connvalue))
{
oleDbConnectionStr.Open();
if (oleDbConnectionStr.State == ConnectionState.Open)
{
string mySql = "select * from [" + dbfFilename + "]";
OleDbCommand myQuery = new OleDbCommand(mySql, oleDbConnectionStr);
OleDbDataReader reader = myQuery.ExecuteReader();
DataTable dtSchema = reader.GetSchemaTable();
DataTable dtDbf = new DataTable();
List<DataColumn> listCols = new List<DataColumn>();
string columnName = string.Empty;