Skip to content

Commit f82a5e1

Browse files
totti-devmhalbritter
authored andcommitted
Fix local dependent writing of banner into ByteArrayOutputStream
See gh-39601
1 parent d2136e5 commit f82a5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ private Banner getTextBanner(Environment environment) {
9696
private String createStringFromBanner(Banner banner, Environment environment, Class<?> mainApplicationClass)
9797
throws UnsupportedEncodingException {
9898
ByteArrayOutputStream baos = new ByteArrayOutputStream();
99-
banner.printBanner(environment, mainApplicationClass, new PrintStream(baos));
10099
String charset = environment.getProperty("spring.banner.charset", "UTF-8");
100+
banner.printBanner(environment, mainApplicationClass, new PrintStream(baos, false, charset));
101101
return baos.toString(charset);
102102
}
103103

0 commit comments

Comments
 (0)