Skip to content

Commit 0af21cf

Browse files
author
s003958
committed
Force UTF-8 encoding on tar file
1 parent 62b2151 commit 0af21cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/workflow/cps/replay/ReplayPipelineCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected ArrayList<SimpleEntry<String,String>> parseScripts(InputStream tarInpu
140140
outStream.write(data, 0, count);
141141
}
142142
outStream.flush();
143-
String scriptContent = new String(byteStream.toByteArray());
143+
String scriptContent = byteStream.toString("UTF-8");
144144

145145
SimpleEntry<String, String> entry = new SimpleEntry<>(scriptName, scriptContent);
146146
list.add(entry);

0 commit comments

Comments
 (0)