我正在尝试使用西欧(Windows)编码读取 CSV 文件
df = pd.read_csv(FileName,encoding='mbcs', usecols=[1],header=4)
此代码在 Windows 上运行良好,但在 Linux 18.04 上运行良好。(错误:未知编码:mbcs)确实,在编解码器python文档中,我们有信息:
mbcs is for Windows only: Encode the operand according to the ANSI codepage (CP_ACP).
是否有另一种方法/名称可以在 Linux 上的 python 中解码我的文件?(我有数千个文件,所以我无法在 Excel 上另存为)