From a243c1261770a2cb37391769871b8ccaa51c33c0 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 14 Sep 2021 09:26:46 +0100 Subject: [PATCH] JAL-2422 Fixed URL encoding of REST calls (broken paths in Windows due to colon). Better UTF-8 Name call. --- src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java b/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java index 812bfea..19d6a8b 100644 --- a/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java +++ b/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java @@ -881,8 +881,7 @@ public class ChimeraManager { try { - command = URLEncoder.encode(command, - StandardCharsets.UTF_8.toString()); + command = URLEncoder.encode(command, StandardCharsets.UTF_8.name()); } catch (UnsupportedEncodingException e) { command = command.replace(" ", "+").replace("#", "%23") -- 1.7.10.2