From 7af5a31ae16def2a8fd5e96bff60a6843987a2e9 Mon Sep 17 00:00:00 2001 From: Suresh Chintalapati Date: Mon, 14 Sep 2020 20:25:59 -0400 Subject: [PATCH] Changed the default charset to UTF-8 to support special characters --- .../NotificationMessageHandlerMethodArgumentResolver.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/endpoint/NotificationMessageHandlerMethodArgumentResolver.java b/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/endpoint/NotificationMessageHandlerMethodArgumentResolver.java index 75aa38bf4..fbef88e26 100644 --- a/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/endpoint/NotificationMessageHandlerMethodArgumentResolver.java +++ b/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/endpoint/NotificationMessageHandlerMethodArgumentResolver.java @@ -35,7 +35,6 @@ import org.springframework.http.converter.StringHttpMessageConverter; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.util.StringUtils; -import org.springframework.web.util.WebUtils; /** * @author Agim Emruli @@ -127,7 +126,7 @@ public InputStream getBody() throws IOException { private Charset getCharset() { return this.mediaType.getCharset() != null ? this.mediaType.getCharset() - : Charset.forName(WebUtils.DEFAULT_CHARACTER_ENCODING); + : Charset.defaultCharset(); } @Override