Created
July 29, 2013 09:40
-
-
Save sonkm3/6103254 to your computer and use it in GitHub Desktop.
ruby: url encode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "cgi" | |
p CGI.escape("abc+&%") | |
# "abc%2B%26%25" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment