I'm trying to read CSV files with Western Europe (windows) encoding
df = pd.read_csv(FileName,encoding='mbcs', usecols=[1],header=4)
This code works well on Windows but not on Linux 18.04. (Error: unknown encoding: mbcs) Indeed, in the codecs python documentation, we have the information:
mbcs is for Windows only: Encode the operand according to the ANSI codepage (CP_ACP).
is there another way/name to decode my files in python on Linux? (I have thousand of files so I can't save as on Excel)
'charmap' codec can't decode byte 0x8d in position 164956: character maps to <undefined>
However it works with 'cp1252' on windows – Fermentative