Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

Export CSV fieldSeparator bug?

$
0
0

I'm trying to make an export CSV button and the separator default is "comma" and I'm trying to change it to semicolon but it broke the CSV. the result when i export it is like this.

but if i change to different symbol or alphabet it works fine, here is my code

function InitDatatableAtt(){

        var buttons = [
            {
                extend: 'csvHtml5',
                text: 'Export CSV',
                fieldBoundary: '',
                fieldSeparator: ';'
            },
        ];

        var table = $('#dttable_att').DataTable({
            "order": [0,"desc"],
            "lengthChange":false,
            "dom": 'Bfrtip',
            "buttons": buttons
        });
}

Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>