|
|
@@ -1573,7 +1573,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
|
|
|
string strline;
|
|
|
string[] aryline;
|
|
|
- StreamReader mysr = new StreamReader(strpath, System.Text.Encoding.Default);
|
|
|
+ StreamReader mysr = new StreamReader(strpath, System.Text.Encoding.UTF8);
|
|
|
|
|
|
while ((strline = mysr.ReadLine()) != null)
|
|
|
{
|
|
|
@@ -1595,7 +1595,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
|
|
|
//填充数据并加入到datatable中
|
|
|
mydr = mycsvdt.NewRow();
|
|
|
- for (int i = 0; i < intColCount; i++)
|
|
|
+ for (int i = 0; i < aryline.Length; i++)
|
|
|
{
|
|
|
mydr[i] = aryline[i];
|
|
|
}
|
|
|
@@ -1607,7 +1607,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- Console.WriteLine(ex.Message);
|
|
|
+ Console.WriteLine(ex.Message+ex.StackTrace);
|
|
|
return false;
|
|
|
}
|
|
|
}
|