diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java index 0b55c00bd..3bb927460 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java @@ -68,6 +68,7 @@ import java.io.StringWriter; import java.net.URLDecoder; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.security.SecureRandom; import java.util.ArrayList; import java.util.List; @@ -237,7 +238,7 @@ private Wallet createWallet(CreateWalletRequest request, boolean authority) { didDocumentBuilder.id(did.toUri()); didDocumentBuilder.verificationMethods(verificationMethods); DidDocument didDocument = didDocumentBuilder.build(); - + didDocument = DidDocument.fromJson(URLDecoder.decode(didDocument.toJson(), StandardCharsets.UTF_8)); log.debug("did document created for bpn ->{}", request.getBpn()); //Save wallet