Hi @slavab!
Are you still blocked here? If so, would you mind sharing a screenshot of your downloadFile query? Specifying the ‘csv’ filetype could do the trick.
https://docs.retool.com/docs/scripting-retool#utilsdownloadfiledata-filename-filetype
In general, there are a few built in CSV management options: filepicker components will have a .parsedValue property that populates if the file is a CSV, buttons have a "download data" option that can output a csv format, and tables have some built in CSV exporting options. If any of the default settings aren't working for your use case, we do have the Papa.parse library built into retool. The full PapaParse docs are here: https://www.papaparse.com/docs and that could be used in a JS query (in combination with the utils.downloadFile function) and they will support some more specific CSV parsing and exporting options. More specifically, Papa.unparse could work for you!