From e16e4ae83b47933554ac51712e33f476845792f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Lindstr=C3=B6m?= Date: Sun, 1 Oct 2023 19:51:10 +0200 Subject: [PATCH] See https://github.com/litsec/eidas-opensaml/pull/52 --- .../ext/attributes/impl/CurrentAddressTypeUnmarshaller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/se/swedenconnect/opensaml/eidas/ext/attributes/impl/CurrentAddressTypeUnmarshaller.java b/src/main/java/se/swedenconnect/opensaml/eidas/ext/attributes/impl/CurrentAddressTypeUnmarshaller.java index bd00d7f..0b91310 100644 --- a/src/main/java/se/swedenconnect/opensaml/eidas/ext/attributes/impl/CurrentAddressTypeUnmarshaller.java +++ b/src/main/java/se/swedenconnect/opensaml/eidas/ext/attributes/impl/CurrentAddressTypeUnmarshaller.java @@ -17,6 +17,7 @@ import java.io.ByteArrayInputStream; import java.io.IOException; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; @@ -95,7 +96,7 @@ private Document parseContents(final Text node, final Element domElement) throws // try { final byte[] bytes = Base64Support.decode(textContent); - final String addressElements = new String(bytes); + final String addressElements = new String(bytes, StandardCharsets.UTF_8); // Then build a fake XML document holding the contents in element form. //