pjfanning / poi-xmlbeans-patch-test

Test that demonstrates the use of org.apache.xmlbeans:xmlbeans:3.+ or com.github.pjfanning:xmlbeans:2.6.5 to workaround https://bz.apache.org/bugzilla/show_bug.cgi?id=54084

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poi-xmlbeans-patch-test

Running the sample code

  • ./gradlew run --args=sample.xlsx

The test code will extract the text from the spreadsheet. If you don't supply a filename, it will read the sample.xlsx.

sample.xlsx has some Greek characters that are Unicode Surrogates and these characters are replaced by '?' characters when we write the workbook out. com.github.pjfanning:xmlbeans jar fixes this issue.

If you want to check the behaviour without the org.apache.xmlbeans jar, modify the build.sbt and remove the exclude and omit the com.github.pjfanning version of the xmlbeans jar.

About

Test that demonstrates the use of org.apache.xmlbeans:xmlbeans:3.+ or com.github.pjfanning:xmlbeans:2.6.5 to workaround https://bz.apache.org/bugzilla/show_bug.cgi?id=54084

License:Apache License 2.0


Languages

Language:Java 100.0%