RosettaCodeData/Task/URL-encoding/Java/url-encoding-2.java

2 lines
61 B
Java

URLEncoder.encode("http://foo bar/", StandardCharsets.UTF_8)