]> source.dussan.org Git - poi.git/commit
XSLX2CSV: Do not double-encode if the value is already having quotes and escape doubl...
authorDominik Stadler <centic@apache.org>
Tue, 6 Apr 2021 06:11:01 +0000 (06:11 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 6 Apr 2021 06:11:01 +0000 (06:11 +0000)
commit3aa712c32b129af024c9d1107d0c83b8df58517b
tree3a6446f2351f81b3e3ea87fd30063fd2945d80f5
parentddc13a4c48ab296fbadb19ae1a02e511e9db64e8
XSLX2CSV: Do not double-encode if the value is already having quotes and escape double-quotes

Most CSV formats use "" (two quotes) to escape a "-character, we should do this in this
example as well to produce files that can be parsed by other CSV processors correctly.

Also cases where the value is already enclosed in quotes should not lead to additional quotes

Add a simple initial test to module "examples" verify basic functionality of XSLX2CSV
as I often rely on it for converting some very large xlsx-files to csv

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888418 13f79535-47bb-0310-9956-ffa450edef68
examples/build.gradle
examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java
ooxml/build.gradle