I am trying to create http parameters from a hash I have using Ruby on Rails, I have tried using URI.encode_www_form(params) , but this is not generating the parameters correctly.
Below is the hash I have
params['Name'.to_sym] = 'Nia Kun'
params['AddressLine1'.to_sym] = 'Address One'
params['City'.to_sym] = 'City Name'
This method converts space to +, what I want is it to convert space with %20
I am getting "Name=Nia+Kun&AddressLine1=Address+One&City=City+Name" but I need this spaces to be converted to %20