Issue in encoding the query string

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

Hi,

I would suggest you to try this way:

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