You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error exporting: java.nio.charset.CharsetICU[UTF-8]
java.nio.charset.IllegalCharsetNameException: java.nio.charset.CharsetICU[UTF-8]
at java.nio.charset.Charset.checkCharsetName(Charset.java:201)
at java.nio.charset.Charset.forName(Charset.java:295)
at org.apache.commons.compress.archivers.zip.ZipEncodingHelper.getZipEncoding(ZipEncodingHelper.java:58)
at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.<init>(ZipArchiveInputStream.java:431)
at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.<init>(ZipArchiveInputStream.java:408)
at org.odftoolkit.odfdom.pkg.ZipHelper.createZipInputStream(ZipHelper.java:61)
at org.odftoolkit.odfdom.pkg.ZipHelper.entriesToMap(ZipHelper.java:81)
at org.odftoolkit.odfdom.pkg.OdfPackage.readZip(OdfPackage.java:529)
at org.odftoolkit.odfdom.pkg.OdfPackage.initializeZip(OdfPackage.java:509)
at org.odftoolkit.odfdom.pkg.OdfPackage.<init>(OdfPackage.java:318)
at org.odftoolkit.odfdom.pkg.OdfPackage.loadPackage(OdfPackage.java:389)
at org.odftoolkit.odfdom.doc.OdfDocument.loadTemplate(OdfDocument.java:180)
at org.odftoolkit.odfdom.doc.OdfSpreadsheetDocument.newSpreadsheetDocument(OdfSpreadsheetDocument.java:79)
The text was updated successfully, but these errors were encountered:
replace in ZipHelper return new ZipArchiveInputStream(is, StandardCharsets.UTF_8.toString(), true, true);
with return new ZipArchiveInputStream(is, StandardCharsets.UTF_8.name(), true, true);
Nice catch! Thank you!
Do you have some simplified test document to reproduce the issue?
Most welcome would be a patch of yours where there is a test involved that earlier fails and with your patch would be working!
Thanks in advance!
Greetings from the LibreOffice Conference in Bukarest! :-)
Svante
The text was updated successfully, but these errors were encountered: