set emulateCSV mode in DataFormatter

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-11-25 06:46:04 +00:00
parent a1a169334f
commit 057a85ac1e
1 changed files with 2 additions and 1 deletions

View File

@ -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();