# Issue and potential bug with system.dataset.toCSV

**URL:** <https://forum.inductiveautomation.com/t/issue-and-potential-bug-with-system-dataset-tocsv/28142>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 10, 2019, 4:18pm UTC](https://forum.inductiveautomation.com/t/issue-and-potential-bug-with-system-dataset-tocsv/28142 "2019-09-10T16:18:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [September 10, 2019, 4:18pm UTC](https://forum.inductiveautomation.com/t/issue-and-potential-bug-with-system-dataset-tocsv/28142/1 "2019-09-10T16:18:25Z")

</div>

Ignition 8.0.4 system.dataset.toCSV in US vs Belgium.

I am using the following to generate CSV for export. The project is used in both the US and Belgium with very different results in both places.

```auto
csv = system.dataset.toCSV(table.viewDataset, showHeaders=1, forExport=0, localized=1)

```

From the US I get:

```auto
"A1","","IDLE","",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"0"
"A1","4","12329","N/A : 220 : 60 ",,,,,,,,,,"1.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","3.1","63.10000000000002"

```

Similar lines from Belgium are:

```auto
"H8,"""",""IDLE"","""",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,""0"""
"A1,""4"",""12443"",""N/A : 220 : 60 "",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""1,1"",""34,100000000000016"""

```

We are using this step to get the data into Excel because html is used in the header and I have found no good way to strip out the html without first passing through this step.
