diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-11-25 06:46:04 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-11-25 06:46:04 +0000 |
commit | 057a85ac1e599c763acdc769dcc9da2f705f3110 (patch) | |
tree | b03794d10ecbd4704c04441cae0f98937f1fae0e /poi-examples | |
parent | a1a169334fe845744fc78408592aaa27ad8ea376 (diff) | |
download | poi-057a85ac1e599c763acdc769dcc9da2f705f3110.tar.gz poi-057a85ac1e599c763acdc769dcc9da2f705f3110.zip |
set emulateCSV mode in DataFormatter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895315 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples')
-rw-r--r-- | poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java index c411e13ba7..77a1b113e8 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java @@ -201,7 +201,8 @@ public class XLSX2CSV { SharedStrings strings, SheetContentsHandler sheetHandler, InputStream sheetInputStream) throws IOException, SAXException { - DataFormatter formatter = new DataFormatter(); + //set emulateCSV=true on DataFormatter - it is also possible to provide a Locale + DataFormatter formatter = new DataFormatter(true); InputSource sheetSource = new InputSource(sheetInputStream); try { XMLReader sheetParser = XMLHelper.newXMLReader(); |