On 11 Sep 2008, at 14:02, David Liwoch wrote:
>
> I have this output:
> Using <%= string%> or <%=h string%>
>
> Velkommen+til+Personalebasen%2E%0D%0A%0D%0ADu+har+f%E5et+tildelt+et
> +brugerID%3A+4531711982...
>
> And this output:
> Using <%=u string%>
> Velkommen%2Btil%2BPersonalebasen%252E%250D%250A%250D%250ADu%2Bhar%2Bf
> %25E5et%2Btild...
>
> Its an output from an sms gateway. So I cannot manipulate the source.
>
> But I want the output to be humanly readable. The output is danish for
> those wondering.
>
CGI.unescape
> No native decoding option ? Or do I need to do some RegExp magic?
> ( hope not, i''m afraid of RegExp ^^ )
>
> Thx in advance
>
> David
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---