Ruby equivalent to JavaScript’s encodeURIComponent that produces identical output?

Posted by Mo on Stack Overflow See other posts from Stack Overflow or by Mo
Published on 2010-05-18T14:50:10Z Indexed on 2010/05/18 15:01 UTC
Read the original article Hit count: 197

Filed under:
|

Hi is there an equivalent ruby method to JavaScript encodeURIComponent method? i am using the URI.unescape(str) but it recognizes the "£" (after encodeURIComponent it becomes "%C2%A3") as a "?" sign. any solution's? thanks

© Stack Overflow or respective owner

Related posts about ruby

Related posts about JavaScript