urldecode in ruby? February 25, 2023 by Tarik A better method is CGI.unescape: URI.unescape is deprecated decoded_uri = CGI.unescape(encoded_uri)