This is an automated email from the git hooks/post-receive script. New commit to branch feature/7648-export-recherche-projets in repository coselmar. See http://git.codelutin.com/coselmar.git commit ea841eeee5e8992a462156fc05ff429803e49919 Author: Yannick Martel <martel@©odelutin.com> Date: Thu Dec 10 10:20:10 2015 +0100 7648 : application du changement d'API de nuiton-csv pour l'export en inputStream --- .../java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java b/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java index 1a17887..abd6384 100644 --- a/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java +++ b/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java @@ -28,6 +28,8 @@ import java.io.IOException; import java.io.InputStream; import java.io.StringWriter; import java.io.Writer; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collection; import java.util.Date; @@ -66,6 +68,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.lucene.queryparser.classic.ParseException; import org.debux.webmotion.server.render.Render; import org.nuiton.csv.Export; +import org.nuiton.csv.Exporter; import org.nuiton.topia.persistence.TopiaIdFactory; import org.nuiton.topia.persistence.TopiaNoResultException; import org.nuiton.util.pagination.PaginationParameter; @@ -837,7 +840,7 @@ public class QuestionsWebService extends CoselmarWebServiceSupport { InputStream resultStream; try { - resultStream = Export.exportToInputStream(exportModel, questions); + resultStream = Exporter.builder(exportModel).setCellSeparator(";").setCharset(StandardCharsets.UTF_8).build().exportToInputStream(questions); } catch (Exception e) { if (log.isErrorEnabled()) { log.error("Error during export", e); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.