Enhancing csv separator with locale

Enhancing csv separator with locale

JerJer Posts: 2Questions: 0Answers: 0
edited October 2012 in TableTools
The cvs file generated is separated with comma (quite normal you could say because csv is for comma separated value).
Nevertheless, in France, we use csv with semi-colon.
So I succeeded in changing the separator in the TableTools.js but I would like to be able to change this dynamically regarding the browser locale.
Is this possible?

Replies

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    You'd need to detect the locale and then use the sFieldSeperator option for this button (or set the default which might actually be easier): http://datatables.net/extras/tabletools/button_options#sFieldSeperator .

    Allan
This discussion has been closed.