From: Ben Soares Date: Tue, 14 Sep 2021 08:26:46 +0000 (+0100) Subject: JAL-2422 Fixed URL encoding of REST calls (broken paths in Windows due to colon)... X-Git-Tag: Release_2_11_2_0~37^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a243c1261770a2cb37391769871b8ccaa51c33c0;p=jalview.git JAL-2422 Fixed URL encoding of REST calls (broken paths in Windows due to colon). Better UTF-8 Name call. --- 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")