java.net.URLEncoder.encode(String s, String encoding)
can help too. It follows the HTML form encodingapplication/x-www-form-urlencoded
.URLEncoder.encode(query, "UTF-8");
URI uri = new URIBuilder(termsUrl).addParameter("X-Authorization",
"token " + token).build();URI uri = new URI(https://jira.pearsoncmg.com/jira/rest/greenhopper/1.0/rapid/charts/releaseburndownchart?rapidViewId=14141&versionId=1515");
String q = "random word £500 bank $";
String url = "http://example.com/query?q=" + URLEncoder.encode(q, "UTF-8");
No comments:
Post a Comment