Description:
I have encountered an issue where the to_csv function in Elixir Explorer sometimes generates CSV files with binary encoding instead of the expected text encoding. This problem was observed when working with the AdventureWorks2014 dataset.
Steps to Reproduce:
Use the to_csv function in Elixir Explorer to export a dataframe to a CSV file.
Check the file encoding using the file -i command in the terminal.
Observed Behavior:
For the ProductPhoto.csv, the output is:
Expected Behavior:
The to_csv function should consistently save all CSV files with the correct text encoding (text/csv), rather than occasionally defaulting to binary encoding.
Environment:
Explorer version: 0.9.1
Operating System: MacOS
Additional Context:
This issue might be related to how certain data types or characters are being handled during the export process. It would be helpful to investigate the differences in data between the two files that might be causing this inconsistency.
Let me know if there's anything else you'd like to add or modify!
Description: I have encountered an issue where the
to_csv
function in Elixir Explorer sometimes generates CSV files with binary encoding instead of the expected text encoding. This problem was observed when working with the AdventureWorks2014 dataset.Steps to Reproduce:
to_csv
function in Elixir Explorer to export a dataframe to a CSV file.file -i
command in the terminal.Observed Behavior: For the
ProductPhoto.csv
, the output is:This indicates that the file was saved with a binary encoding.
However, for the
WorkOrder.csv
, the output is:This indicates that the file was saved with the correct text encoding.
One can easily convert to correct encoding by:
Expected Behavior: The
to_csv
function should consistently save all CSV files with the correct text encoding (text/csv
), rather than occasionally defaulting to binary encoding.Environment:
Additional Context: This issue might be related to how certain data types or characters are being handled during the export process. It would be helpful to investigate the differences in data between the two files that might be causing this inconsistency.
Let me know if there's anything else you'd like to add or modify!