From: Chris Hulan Date: 2008-03-01T03:14:57+09:00 Subject: Re: Convert characters from hex to string On Feb 29, 1:06 pm, Shandy Nantz wrote: > I looked around and found some similar postings to my problem but not > exactly what I was looking for. I have a string that has some hex > characters intermingled in with a normal string. I need to convert those > character in their char equivalent. unpack seems not to work. My string > looks like this: > > https%3A%2F%2Fwww.example.com%2Flogic%3Fss%3D1%26companyname%3DShhhhhhh%26userlogin... > > Is there a way to do this? Thanks, > > -S > -- > Posted viahttp://www.ruby-forum.com/. FYI irb(main):003:0> CGI.unescape 'http://www.example.com%2flogic%3fss %3d1%26companyname%3dshhhhhhh%26userlogin%3dshhhhh%40/' => "http://www.example.com/logic? ss=1&companyname=shhhhhhh&userlogin=shhhhh@/" cheers