Escaping/encoding URI components in ruby 3.2
17-Feb-2023 749
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 #Escaping/encoding #components https://rubyonrails.ba/link/escaping-encoding-uri-components-in-ruby-3-2