JAL-2422 Fixed URL encoding of REST calls (broken paths in Windows due to colon)...
[jalview.git] / 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")