Github user neykov commented on the issue:
https://github.com/apache/brooklyn-server/pull/551
`URLEncoder.encode` is used for encoding form data for submission in the
request body with a `x-www-form-urlencoded` `Content-Type`. That's different
from URL encoding.
Here's a relevant [SO
link](http://stackoverflow.com/questions/444112/how-do-i-encode-uri-parameter-values).
See also the last downvoted answer.
We should deprecate `Urls.encode` and use a proper URL builder instead.
[This](https://github.com/mikaelhg/urlbuilder) one I like for being small with
no dependencies.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---