Issue in encoding the query string


#1

URI.encode_www_form is converting space to ‘+’.could someone suggest which method converts(encodes) space to ‘%20’


#2

Hi,

I would suggest you to try this way:

URI.encode_www_form(params).gsub("+", "%20")