Elixir 1.4.2, Erlang 19.2
Ubuntu 16.10
URI.encode("http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html")
Returns
"http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html"
URI.encode("http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html")
Should Return
"http%3A%2F%2Fwww.brookstone.com%2Fpd%2Ffitbit-charge-2-heart-rate-and-fitness-wristband%2F320397p.html"
and furthermore If I run the URL through :http_uri.encode it returns the expected output.
:http_uri.encode 'http://www.brookstone.com/pd/fitbit-charge-2-heart-rate-and-fitness-wristband/320397p.html'
'http%3A%2F%2Fwww.brookstone.com%2Fpd%2Ffitbit-charge-2-heart-rate-and-fitness-wristband%2F320397p.html'
Jos茅 Valim
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D
Thanks @josevalim I missed that.
Thanks for filing an issue. The docs have also been improved.
Most helpful comment
Please see encode_www_form.
Jos茅 Valim
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D