Escaping/encoding URI components in ruby 3.2

1 · Jonathan Rochkind · Feb. 14, 2023, 9:40 p.m.
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 the query … Continue reading Escaping/encoding URI components in ruby 3.2 →...