how do i Raw url ENCODING/ DECODING in javascript and ruby to get the same answers in both?
Posted
by Mo
on Stack Overflow
See other posts from Stack Overflow
or by Mo
Published on 2010-05-14T12:24:13Z
Indexed on
2010/05/14
12:34 UTC
Read the original article
Hit count: 213
Hi
i am working on a web application where i have to encode and decode a string at the JavaScript side and ruby backend of the code. the only problem is that the escape methods for JavaScript and ruby have a small difference. in java script the " " is treated as "%20" but in ruby the " "(space) is encoded to "+".
any way to work around this? another ruby method to encode a string in RAW url encode?
thank you
© Stack Overflow or respective owner