c# 读取 dbf 中文乱码 VFPOLEDBSetup.msi

DataSet mySet = null;
try
{

            string strConn = @"Provider=vfpoledb;Data Source=" + path + ";Collating Sequence=machine;";
            using (OleDbConnection myConnection = new OleDbConnection(strConn))
            {
                OleDbDataAdapter adpt = new OleDbDataAdapter("select * from " + OleDbName, myConnection);
                mySet = new DataSet();
                adpt.Fill(mySet);
                myConnection.Close();
            }
        }

img

dbf导出时编码格式应为gbk或gb2312 错误原因为utf-8