janArb commented on issue #18: IMAGING-168 installing package with Swedish characters adds junk char… URL: https://github.com/apache/commons-imaging/pull/18#issuecomment-521289702 Just realized that even after the patch for reading UTF8 the writing of IPTC tags is also still limited to Latin (https://github.com/apache/commons-imaging/blob/2752dd7f613fca3fcb799d9f8fbdefa7793d4748/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcParser.java#L489) in org.apache.commons.imaging.formats.jpeg.iptc.IptcParser#writeIPTCBlock ``` final byte[] recordData = element.value.getBytes("ISO-8859-1"); if (!new String(recordData, "ISO-8859-1").equals(element.value)) { throw new ImageWriteException( "Invalid record value, not ISO-8859-1"); ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
