We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d93fa7c commit ef2902dCopy full SHA for ef2902d
src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java
@@ -849,10 +849,8 @@ public void write( Writer writer )
849
{
850
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
851
super.write( byteArrayOutputStream );
852
- for ( byte b : byteArrayOutputStream.toByteArray() )
853
- {
854
- writer.write( (char) b );
855
- }
+ // We know that UTF-8 is the encoding of the JAR file specification
+ writer.write( byteArrayOutputStream.toString( "UTF-8" ) );
856
}
857
858
/**
0 commit comments