Skip to content

Commit aaceee0

Browse files
committed
fix: UTF8 for xml bytes in ParserTestBase
1 parent b7072a2 commit aaceee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

int-aws/src/test/java/org/springframework/integration/aws/config/xml/ParserTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected <T> void registerBean(String name, Class<? super T> type, T bean) {
4646

4747
protected <T> T loadBean(Class<T> type, String content) {
4848
var xml = formatXml(content);
49-
reader.loadBeanDefinitions(new ByteArrayResource(xml.getBytes()));
49+
reader.loadBeanDefinitions(new ByteArrayResource(xml.getBytes(StandardCharsets.UTF_8)));
5050
return beanFactory.getBean(type);
5151
}
5252

0 commit comments

Comments
 (0)