Github user geomacy commented on the issue: https://github.com/apache/brooklyn-server/pull/551 I hesitate to suggest this but one "creative" use of URI could be to do the encoding along the lines of the above, e.g. ``` @Test public void testURLEncode() throws Exception { final String str = "http://myusername@super secret:myhost"; final URI u3 = new URI(null, str, null); final String asciiString = u3.toASCIIString(); assertEquals(asciiString, "http://myusername@super%20secret:myhost"); } ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---