Hi, From an external source I am getting data in the following format / encoding: http://www.mydomain.com/app?message=%003%000%009%009%003%004 how do I convert the message parameter into plain string 309934? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Any takers? On Tue, Jan 24, 2012 at 4:14 AM, Santosh c <santoshc197-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > From an external source I am getting data in the following format / encoding: > > http://www.mydomain.com/app?message=%003%000%009%009%003%004 > > how do I convert the message parameter into plain string 309934? Thanks.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 23 January 2012 22:44, Santosh c <santoshc197-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > From an external source I am getting data in the following format / encoding: > > http://www.mydomain.com/app?message=%003%000%009%009%003%004 > > how do I convert the message parameter into plain string 309934? Thanks.If you use ruby-debug to break in and examine params[:message] what does it show? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.