a guest Dec 11th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- ruby-1.9.3-rc1 :001 > require 'uri'
- => true
- ruby-1.9.3-rc1 :002 > URI.encode("Foo&Bar")
- => "Foo&Bar"
- ruby-1.9.3-rc1 :003 > URI.encode("Foo & Bar")
- => "Foo%20&%20Bar"
RAW Paste Data