lib/oo_auth.rb
def escape(value)
      uri_escape(value.to_s)
    rescue ArgumentError
      uri_escape(value.to_s.force_encoding(Encoding::UTF_8))
    end
# Escape +value+ by URL encoding all non-reserved character.
#
# See Also: {OAuth core spec version 1.0, section 5.1}[http://oauth.net/core/1.0#rfc.section.5.1]
Escape +value+ by URL encoding all non-reserved character.
Escape + value + by URL encoding all non - reserved character .
def escape(value)
      uri_escape(value.to_s)
    rescue ArgumentError
      uri_escape(value.to_s.force_encoding(Encoding::UTF_8))
    end
def escape ( value ) uri_escape ( value . to_s ) rescue ArgumentError uri_escape ( value . to_s . force_encoding ( Encoding :: UTF_8 ) ) end
Escape +value+ by URL encoding all non-reserved character.
Escape + value + by URL encoding all non - reserved character .
value