-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to set semicolon instead of comma in Reactable.downloadDataCSV as column separator #239
Comments
Neither of these are possible at this time, and I've tagged this as a feature request. You can replace |
Thanks a lot for steering me in the right direction Glin. For anyone trying to solve a similar issue, here is the code I used. Please note that my JavaScript is probably suboptimal though.
|
Just when I needed it most. Thank you @novotny1akub !
It might help those with UTF-8 encoding issues (picked from here). |
Thanks a lot for pointing that out @radovan-miletic. I did not realise there was this issue. Apologies the code did not work for you 'as is'. I slightly edited my code, added some comments and also changed the encoding to utf-16 which I assumed would work for various special characters. I tried the example below for testing. Please note that this example worked with both utf-8 and utf-16.
|
It's now possible to use a custom field separator and decimal separator in the development version:
You can change the separators using the Reactable.downloadDataCSV('cars-table', 'cars93.csv', { sep: ';', dec: ',' }) There's also a new I didn't totally understand the encoding issues, so you can open a new issue with details if that's still a problem. |
I would like to ask if it is possible to set semicolon instead of comma in Reactable.downloadDataCSV as a column separator. Similarly, I would like to set comma instead of dot for the decimal mark. Looking at the code of Reactable.downloadDataCSV, it does not seem to be possible. I was just wondering if I can replace Reactable.downloadDataCSV with my own function. Any help is appreciated.
The text was updated successfully, but these errors were encountered: