Code example for URI

Methods: toASCIIString

0
		String scheme = "http";
		String authority = "maps.google.fr";
		String path = "/maps";
		String query = "f=q&hl=fr&q=" + address+ " , " + zipcode + " " + city ;
		try { 
			URI uri = new URI(scheme, authority, path, query, null);
			browser.setUrl(uri.toASCIIString());
		} catch (URISyntaxException ex) {
			ex.printStackTrace();
		} 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java