method

urlencode

ruby latest stable - Class: Net::HTTPHeader

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

urlencode(str)
private

No documentation available.

# File lib/net/http.rb, line 1612
    def urlencode(str)
      str.dup.force_encoding('ASCII-8BIT').gsub(/[^a-zA-Z0-9_\.\-]/){'%%%02x' % $&.ord}
    end