File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
xmpbox/src/test/java/org/apache/xmpbox Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2828import static org .junit .jupiter .api .Assertions .assertTrue ;
2929
3030import java .io .IOException ;
31+ import java .nio .charset .StandardCharsets ;
3132import java .util .Calendar ;
3233import java .util .GregorianCalendar ;
3334import java .util .List ;
@@ -166,7 +167,7 @@ void testPDFBOX3257() throws XmpParsingException
166167 + "<?xpacket end=\" w\" ?>" ;
167168 DomXmpParser xmpParser = new DomXmpParser ();
168169 xmpParser .setStrictParsing (false );
169- XMPMetadata xmp = xmpParser .parse (xmpmeta .getBytes ());
170+ XMPMetadata xmp = xmpParser .parse (xmpmeta .getBytes (StandardCharsets . UTF_8 ));
170171 XMPBasicSchema basicSchema = xmp .getXMPBasicSchema ();
171172 Calendar createDate1 = basicSchema .getCreateDate ();
172173 basicSchema .setCreateDate (new GregorianCalendar ());
You can’t perform that action at this time.
0 commit comments