{"action":"created","issue":{"url":"https://api.github.com/repos/DataTables/Buttons/issues/44","labels_url":"https://api.github.com/repos/DataTables/Buttons/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/DataTables/Buttons/issues/44/comments","events_url":"https://api.github.com/repos/DataTables/Buttons/issues/44/events","html_url":"https://github.com/DataTables/Buttons/issues/44","id":112015448,"number":44,"title":"issue to convert a table with numbers into csv file","user":{"login":"kaktus40","id":6098556,"avatar_url":"https://avatars.githubusercontent.com/u/6098556?v=3","gravatar_id":"","url":"https://api.github.com/users/kaktus40","html_url":"https://github.com/kaktus40","followers_url":"https://api.github.com/users/kaktus40/followers","following_url":"https://api.github.com/users/kaktus40/following{/other_user}","gists_url":"https://api.github.com/users/kaktus40/gists{/gist_id}","starred_url":"https://api.github.com/users/kaktus40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaktus40/subscriptions","organizations_url":"https://api.github.com/users/kaktus40/orgs","repos_url":"https://api.github.com/users/kaktus40/repos","events_url":"https://api.github.com/users/kaktus40/events{/privacy}","received_events_url":"https://api.github.com/users/kaktus40/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-18T11:49:35Z","updated_at":"2015-10-19T07:38:31Z","closed_at":"2015-10-19T07:38:31Z","body":"Hello my use case is here (from your site) : \r\n```javascript\r\n    var mytable=$('#example').DataTable( {\r\n        \"data\": [\r\n        {\r\n            \"name\":       \"Tiger Nixon\",\r\n            \"position\":   \"System Architect\",\r\n            \"salary\":     \"$3,120\",\r\n            \"start_date\": \"2011/04/25\",\r\n            \"office\":     \"Edinburgh\",\r\n            \"extn\":       5421\r\n        },\r\n        {\r\n            \"name\": \"Garrett Winters\",\r\n            \"position\": \"Director\",\r\n            \"salary\": \"5300\",\r\n            \"start_date\": \"2011/07/25\",\r\n            \"office\": \"Edinburgh\",\r\n            \"extn\": \"8422\"\r\n        },\r\n        // ...\r\n    ],\r\n        \"columns\": [\r\n            { \"data\": \"name\" },\r\n            { \"data\": \"position\" },\r\n            { \"data\": \"salary\" },\r\n            { \"data\": \"extn\" },\r\n            { \"data\": \"start_date\" },\r\n            { \"data\": \"salary\" }\r\n        ],\r\n        buttons: [\r\n        'colvis',\r\n        'csv'\r\n    ],\r\n    dom: 'Bfrtip'\r\n    } );\r\n```\r\nWhen I click on csv generation button, I have an issue when the plugin try to use \"replace\" function with a number (here  5421). [See here](https://github.com/DataTables/Buttons/blob/master/js/buttons.html5.js#L352).\r\nIs it a good idea to convert all cell into a String before? like this (replace line 352):\r\n```javascript\r\ntampon=a[i].toString();\r\n\t\t\ts += boundary ?\r\n\t\t\t\tboundary + tampon.replace( boundary, '\\\\'+boundary ) + boundary :\r\n\t\t\t\ta[i];\r\n```\r\ntampon was initiate before!"},"comment":{"url":"https://api.github.com/repos/DataTables/Buttons/issues/comments/149128111","html_url":"https://github.com/DataTables/Buttons/issues/44#issuecomment-149128111","issue_url":"https://api.github.com/repos/DataTables/Buttons/issues/44","id":149128111,"user":{"login":"DataTables","id":278219,"avatar_url":"https://avatars.githubusercontent.com/u/278219?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTables","html_url":"https://github.com/DataTables","followers_url":"https://api.github.com/users/DataTables/followers","following_url":"https://api.github.com/users/DataTables/following{/other_user}","gists_url":"https://api.github.com/users/DataTables/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTables/subscriptions","organizations_url":"https://api.github.com/users/DataTables/orgs","repos_url":"https://api.github.com/users/DataTables/repos","events_url":"https://api.github.com/users/DataTables/events{/privacy}","received_events_url":"https://api.github.com/users/DataTables/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T07:38:31Z","updated_at":"2015-10-19T07:38:31Z","body":"Using the files from this repo as I suggested above shows that this issue as already been resolved: http://live.datatables.net/supiyuxo/1/edit .\r\n\r\nI will be releasing an updated version of Buttons later this week with the fix included."}}