https://issues.apache.org/bugzilla/show_bug.cgi?id=52211
--- Comment #8 from Constantin <c.pagenk...@googlemail.com> --- Hello, We are using the POI API (stable 3.8) on a system running ibm500 encoding as default encoding. So we got the same error, when trying to create a Workbook using WorkbookFactory.create(ByteArrayInputStream bais). We found that the problem lies in the method org.apache.poi.openxml4j.opc.internal.ContentType.ContentType(String contentType) In line 139, the follwoing code is called: contentTypeASCII = new String(contentType.getBytes(), "US-ASCII"); The String.getBytes() causes the system to return the bytes in default system encoding (for instance ibm500). Afterwards this should be converted using encoding US-ASCII. This cannot work. So, we wonder, why this conversion will be done? We deleted the line and just put following code: contentTypeASCII = contentType; Afterwards it worked fine. Regards Constantin -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org