corrupted downloaded Excel file using Python SDK

Highlighted
First-time Contributor

corrupted downloaded Excel file using Python SDK

I encountered a problem after downloading an Excel file from BOX.

I used the Python SDK referenced in this site, and got everything working and downloaded the file content.

 

However after i wrote the content returned by

client.file(box_file_id_2).content()

i wrote this to a file but couldn't open it with Excel.

 

when tried to explore the issue i tested a simple test file, and saw that there seem to be '\r' characters added with every new line.

 

does anyone have experience with downloading Excel file?

did you encounter this issue?

does anyone have a solution for this?