0

I need to encode xlsx file to ISO-8859-1 and it won't do it. Why? Here is my code:

export_csv = df.to_csv (r'./test.cvs', index = None, sep=";", header=True, encoding="ISO-8859-1") export_xls = df.to_excel(r'./test.xlsx', index=None, header=True, encoding='ISO-8859-1')

Levsha
  • 63
  • 9
  • 1
    Have you checked the answer of https://stackoverflow.com/q/18171739/12744275 – Renaud May 18 '21 at 06:36
  • Thanks for the information, but this didn't solve the issue. It appears that pandas or excel won't save data with proper encoding. – Levsha May 19 '21 at 12:17

0 Answers0