Mercurial > dive4elements > river
changeset 4910:a707ef048188
Insert CR and LF at the end of each line in CSV exports.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 30 Jan 2013 14:42:17 +0100 |
parents | 67bbcee26e21 |
children | da89bb3243d3 |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/AbstractExporter.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/AbstractExporter.java Wed Jan 30 14:39:28 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/AbstractExporter.java Wed Jan 30 14:42:17 2013 +0100 @@ -244,11 +244,14 @@ { logger.info("AbstractExporter.generateCSV"); + char quote = '"'; + char escape = '\\'; + CSVWriter writer = new CSVWriter( new OutputStreamWriter( out, DEFAULT_CSV_CHARSET), - DEFAULT_CSV_SEPARATOR); + DEFAULT_CSV_SEPARATOR, quote, escape, "\r\n"); writeCSVData(writer);