Is there a way to make the csv enclosure character to appear around all data in a csv export file? It appears that the field is only enclosed with the enclosure character when the delimiter character appears in the data.
Thanks in advance,
Gabe
Is there a way to make the csv enclosure character to appear around all data in a csv export file? It appears that the field is only enclosed with the enclosure character when the delimiter character appears in the data.
Thanks in advance,
Gabe
Gabe,
run the updater. We added an export option csv.enclose_always. Same option can also be set to be on by default in user/defaults.php by overriding the respective value from defaults.php.
--
myDBR Team
Thanks for the very quick response!
Testing with v3.9.1 build 2033, the csv.enclose_always option seems to be working for all strings but numeric values are not enclosed
I am using comma delimited, double quote enclosure:
select 'dbr.export.options', 'csv.delimiter', ',';
select 'dbr.export.options', 'csv.header', 0;
select 'dbr.export.options', 'csv.enclosure', '"';
select 'dbr.export.options', 'csv.enclose_always', 1;
Thanks,
Gabe
We've included numbers into csv.enclose_always option in the latest build.
--
myDBR Team
This works perfectly now. Thank you for the quick fixes.
You must log in to post.