Escaping/encoding URI components in ruby 3.2

Thanks to zverok_kha's awesome writeup of Ruby changes, I noticed a new method released in ruby 3.2: CGI.escapeURIComponent This is the right thing to use if you have an arbitrary string that might include characters not legal in a URI/URL, and you want to include it as a path component or part of.
Escaping/encoding URI components in ruby 3.2 #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/escaping-encoding-uri-components-in-ruby-3-2

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles