From 7f25139a0541bfb740bbd2565e6ca5c97c0f57ce Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 8 Aug 2024 08:43:20 +0800 Subject: [PATCH] fix url encoding method --- .../src/main/java/org/hl7/fhir/utilities/Utilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java index 9019581bb..c9075c87b 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java @@ -830,7 +830,7 @@ public class Utilities { public static String encodeUri(String v) { - return v.replace(" ", "%20").replace("?", "%3F").replace("=", "%3D").replace("|", "%7C").replace("+", "%2B"); + return v.replace("%", "%25").replace(" ", "%20").replace("?", "%3F").replace("=", "%3D").replace("|", "%7C").replace("+", "%2B"); }