class OauthUtil
def percent_encode( string )
def percent_encode( string ) # ref http://snippets.dzone.com/posts/show/1260 return URI.escape( string, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]") ).gsub('*', '%2A') end
def percent_encode( string ) # ref http://snippets.dzone.com/posts/show/1260 return URI.escape( string, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]") ).gsub('*', '%2A') end