RosettaCodeData/Task/URL-encoding/Elixir/url-encoding.elixir

3 lines
91 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
iex(1)> URI.encode("http://foo bar/", &URI.char_unreserved?/1)
2015-11-18 06:14:39 +00:00
"http%3A%2F%2Ffoo%20bar%2F"