JAL-2422 Fixed URL encoding of REST calls (broken paths in Windows due to colon)...
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 14 Sep 2021 08:26:46 +0000 (09:26 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 14 Sep 2021 08:26:46 +0000 (09:26 +0100)
src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java

index 812bfea..19d6a8b 100644 (file)
@@ -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")