From: Siep Korteling Date: 2008-02-27T06:43:44+09:00 Subject: Re: open-uri bug Steve H. wrote: > On Feb 26, 12:20 pm, Rob Biedenharn > wrote: >> Probably because %1 looks like a partially escaped character. Try: >> >> ?%251 >> Where %25 is an escaped % >> >> -Rob >> > > I appreciate the reply. This is a bit unfortunate, I am developing a > tool which has to handle URIs the same way the browser does. While I > realize that is not a "correct" URI, the browser still fetches the > pages without a problem. In some sense, I wish I could mirror the > functionality of the browser fetch using the URI module. Anyhow, thank > you for your help! Maybe this helps: URI.escape('http://hello.com/a.php?%1') => "http://hello.com/a.php?%251" Regards, Siep -- Posted via http://www.ruby-forum.com/.