如何在C#中获取Excel文件的编码?它总是返回“Windows 1252”

时间:2017-03-03 07:36:18

标签: c# excel encoding utf-8

if (bom[0] == 0xef && bom[1] == 0xbb && bom[2] == 0xbf) // BOM Check 
{
    encodingType = Encoding.UTF8;// UTF8  Returns
}

我将文件保存为UTF8编码,但此部分始终被跳过

0 个答案:

没有答案