method
uri_encode
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
uri_encode(str)
public
Hide source
# File lib/rubygems/server.rb, line 459 def uri_encode(str) str.gsub(URI::UNSAFE) do |match| match.each_byte.map { |c| sprintf('%%%02X', c.ord) }.join end end