SHARE
TWEET

Untitled

a guest Dec 11th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ruby-1.9.3-rc1 :001 > require 'uri'
  2.  => true
  3. ruby-1.9.3-rc1 :002 > URI.encode("Foo&Bar")
  4.  => "Foo&Bar"
  5. ruby-1.9.3-rc1 :003 > URI.encode("Foo & Bar")
  6.  => "Foo%20&%20Bar"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top