diff --git a/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/error/ErrorResponseBuilder.java b/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/error/ErrorResponseBuilder.java index ba6b57bfc2f0a11269d6ba1a75a0d9655a8c4b42..56dd5cee8c51b040488ccd1f5b0fbe3f4eff99d2 100644 --- a/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/error/ErrorResponseBuilder.java +++ b/smp-webapp/src/main/java/eu/europa/ec/edelivery/smp/error/ErrorResponseBuilder.java @@ -34,6 +34,7 @@ public class ErrorResponseBuilder { private static final Logger log = LoggerFactory.getLogger(ErrorResponseBuilder.class); + public static final MediaType CONTENT_TYPE_TEXT_XML_UTF8 = MediaType.valueOf("text/xml; charset=UTF-8"); private HttpStatus status = INTERNAL_SERVER_ERROR; private ErrorBusinessCode errorBusinessCode = TECHNICAL; private String strErrorDescription = "Unexpected technical error occurred."; @@ -78,7 +79,7 @@ public class ErrorResponseBuilder { public ResponseEntity build() { return ResponseEntity.status(this.status) - .contentType(MediaType.TEXT_XML) + .contentType(CONTENT_TYPE_TEXT_XML_UTF8) .body(this.buildBody()); }