I'm Korean and I have a problem regards with importing csv file into DataTable.
I used this code to import csv file.
public static DataTable ParseCSV(string path) { string filePath = Path.GetDirectoryName(path); string oledbConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties=\"text;HDR=Yes;FMT=Delimited\""; string csvFileName = Path.GetFileName(path); string sQuery = string.Format(" SELECT * FROM [{0}] ", csvFileName); DataTable ds = null; OleDbDataAdapter adt = null; using (OleDbConnection con = new OleDbConnection(oledbConnectionString)) { ds = new DataTable(); adt = new OleDbDataAdapter(sQuery, con); adt.Fill(ds); } return ds; } It works very well when there is no Korean language in csv file.
However, if csv file contains korean word, it transfers korean word into some strange word.
I need your help.
Thank you~~~